Spring Boot Thymeleaf 默认的加载路径

默认路径的源码:

使用Eclipse 按快捷键 ctrl +shift +t 可以查类: 查找 ThymeleafAutoConfiguration 这个类

Spring Boot Thymeleaf 默认的加载路径

点击进去 :

可以看到默认加载类:Spring Boot Thymeleaf 默认的加载路径
点击 ThymeleafPropecties :

Spring Boot Thymeleaf 默认的加载路径

可以知道默认加 的是 classpath:/templates/ xxxx.html 文件

相关文章: