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路径下,所以需要重新指向路径,不知道有什么其他的好方法

th:replace找不到模板文件
th:replace找不到模板文件

现在大部分博客都是瞎几把抄,找了一天没一篇能用的,这篇可以参考

https://blog.csdn.net/qq_35123187/article/details/79986039

相关文章:

  • 2021-03-31
  • 2021-04-01
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-10-11
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-05-30
  • 2021-07-22
相关资源
相似解决方案