- 有关thymeleaf的配置在以下类中:
org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java
- 可以看出:
在spring-boot下,默认约定了Controller试图跳转中thymeleaf模板文件的的前缀prefix是”classpath:/templates/”,后缀suffix是”.html”
org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java