当我们使用thymeleaf视图解析器时,就不用了在properties文件下配置其prefix和suffix了,因为thymeleaf定义的源码已经为我们配置prefix=classpath:templates/
suffix=.html
所以我们在创建文件夹的时候一定要命名templates;
当我们使用thymeleaf视图解析器时,就不用了在properties文件下配置其prefix和suffix了,因为thymeleaf定义的源码已经为我们配置prefix=classpath:templates/
suffix=.html
所以我们在创建文件夹的时候一定要命名templates;