title: EL1008E: Property or Field 'timestamp' cannot be found on object of type 'java.util.HashMap' - maybe not public?
body: <p>When I use Spring Boot's global exception handler, I got this:</p>
  
  <blockquote>
    <p>org.springframework.expression.spel.SpelEvaluationException: EL1008E:
    Property or field 'timestamp' cannot be found on object of type
    'java.util.HashMap' - maybe not public?</p>
  </blockquote>
  
  <p>This is my code, and I have import the Spring Security and Thymeleaf in my project. </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns:th="http://www.thymeleaf.org"&gt;
  &lt;head lang="en"&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;title&gt;统一异常处理&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt; 系统异常 &lt;/h1&gt;
  &lt;div th:text="${url ?: '未捕捉到URL'}"&gt;&lt;/div&gt;
  &lt;div th:text="${exception == null ? '暂无异常信息' : exception.message}"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html
  </code></pre>
  
  
  
  <pre><code>@GetMapping("/test")
  public String test() throws Exception {
      throw new Exception("发生错误");
  }
  </code></pre>
  
  
  
  <pre><code>@ControllerAdvice
  public class GlobalExceptionHandler {
  
      private static final String DEFAULT_ERROR_VIEW = "/error";
      private static final Logger LOGGER = LoggerFactory.getLogger(GlobalExceptionHandler.class);
  
      @ExceptionHandler(value = Exception.class)
      public ModelAndView defaultErrorHandler(HttpServletRequest request, Exception e) {
          LOGGER.error("系统异常", e);
          ModelAndView mav = new ModelAndView();
          mav.addObject("exception", e);
          mav.addObject("url", request.getRequestURI());
          mav.setViewName(DEFAULT_ERROR_VIEW);
          return mav;
      }
  }
  </code></pre>