spring boot + thymeleaf
使用th:replace 引入模板,报错
报错信息如下:
Caused by: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [commons/commons-file], template might not exist or might not be accessible by any of the configured Template Resolvers
spring boot 版本2.2.1
thymeleaf默认的文件夹路径为/templates,我的公用文件则是放在static路径下,所以需要重新指向路径,不知道有什么其他的好方法
现在大部分博客都是瞎几把抄,找了一天没一篇能用的,这篇可以参考
https://blog.csdn.net/qq_35123187/article/details/79986039