【发布时间】:2019-02-03 03:31:51
【问题描述】:
当我使用 Spring Boot 1.4.0 + Thymeleaf 时,我发现静态资源无法访问并抛出错误“模板可能不存在或可能无法被任何已配置的模板解析器访问”。
Folder structure about my static resources
从服务器日志中,可以找到错误“找不到模板”。但 URL 应该是我的 CSS 文件位置。
2018-08-28 21:07:29.826 ERROR 5676 --- [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "Spring Boot Application is available.", template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
【问题讨论】:
标签: spring-boot thymeleaf