首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Spring Boot—— Thymeleaf (gradle) 的简单使用

    最近项目用到了Spring Boot ,但是在控制器返回html视图并渲染参数的时候,存在了疑问。...: org.springframework.boot spring-boot-starter-thymeleaf...:spring-boot-starter-thymeleaf" 二、Spring Boot 控制器Controller的配置,需要使用Model来进行参数传递(或者自定义Map) @RequestMapping...四、Thymeleaf 的缓存配置 每次更改页面,如果不配置Thymeleaf 缓存设置为false,那么每次更改html页面都需要重启页面才刷新,这肯定是我们不愿意的 那么有一个简单的办法,在我们的的基础配置文件里面加入一句配置...例如我的是application.properties 里面加入一句: #Thymeleaf cache set spring.thymeleaf.cache=false 重启,配置完成

    1.8K30
    领券