Tomcat在部署Spring Boot应用程序时出错

时间:2019-05-15 11:19:42

标签: spring-boot tomcat9

2019-05-15 14:14:39.760 ERROR 5700 --- [io-8080-exec-14] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-14] Exception processing template "Dashboard": An error happened during template parsing (template: "class path resource [templates/Dashboard.html]")

在我的本地计算机上,没有问题。

在日志末尾,还有一些其他日志:

Caused by: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/left-nav-bar], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "layouts/Master" - line 99, col 14)

错误出现在这里:

response.sendRedirect("/myPassword" + viewMyPasswordParam);

我使用了request.getContextPath()

而不是那个,但仍然是错误。

2019-05-15 14:44:20.228  INFO 5700 --- [io-8080-exec-14] c.b.g.backend.service.GenericService     : Redirecting to /myPassword
     onAuthenticationSuccess中的

意外错误(这是自定义消息   for / error)404找不到页面:/ error

这是代码

        @Override
        public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {
           .
    .
    .
    .
    .
        response.sendRedirect(request.getContextPath() + "/myPassword" + viewMyPasswordParam);
  GenericService.logger.info("Redirecting to {} in onAuthenticationSuccess");
//i tried also without request.getContextPath() + 

是与百里香有关的吗?我应该给百里香上课吗?

0 个答案:

没有答案