Spring Boot写web,访问网页时出错如下时,个人的解决办法。
An error happened during template parsing (template: “class path resource [templates/index.html]”)
解决办法:
个人在使用时,引入了thymeleaf,所以可以检查html中是否有一些元素上的属性带有例如th:text="" 的使用,即使什么都不写还是会报错,要删掉或者注释,不然就要带上值。
Spring Boot写web,访问网页时出错如下时,个人的解决办法。
An error happened during template parsing (template: “class path resource [templates/index.html]”)
解决办法:
个人在使用时,引入了thymeleaf,所以可以检查html中是否有一些元素上的属性带有例如th:text="" 的使用,即使什么都不写还是会报错,要删掉或者注释,不然就要带上值。