1 <build> 2 <resources> 3 <resource> 4 <directory>src/main/java</directory> 5 <includes> 6 <include>**/*.yml</include> 7 <include>**/*.properties</include> 8 <include>**/*.xml</include> 9 </includes> 10 <filtering>false</filtering> 11 </resource> 12 <resource> 13 <directory>src/main/resources</directory> 14 <includes> 15 <include>**/*.yml</include> 16 <include>**/*.properties</include> 17 <include>**/*.xml</include> 18 <include>**/*.html</include> 19 </includes> 20 <filtering>false</filtering> 21 </resource> 22 </resources>
后台一直报错。说找不到模板。
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon May 27 17:05:11 CST 2024 There was an unexpected error (type=Internal Server Error, status=500). Request processing failed: org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/admin/repairorder/list.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/admin/repairorder/list.html]")
解决办法。就是maven的pom文件中没有加入红色这段。
导致发布的时候,html代码没有带入发布包中。。。。。。。。。。。多么简单的错误。
标签:xml,repairorder,Thymeleaf,html,springboot3,template,error,模板 From: https://www.cnblogs.com/nanahome/p/18216012