springboot2.x集成thymeleaf

2025-06-07 17:02:33

1、使用eclipse的sts工具,创建springboot项目并勾选web依赖和thymeleaf依赖

springboot2.x集成thymeleafspringboot2.x集成thymeleafspringboot2.x集成thymeleaf

4、springmvc不再赘述。上一步中标出的返回值路径,默认在项目的templates文件夹下

springboot2.x集成thymeleaf

6、thymeleaf默认是开启缓存的,所以有的时候当我们改了页面以后也不会立即展示新改的,所以需要关闭缓存

springboot2.x集成thymeleaf
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢