美文网首页
idea+springboot+thymeleaf+liveRe

idea+springboot+thymeleaf+liveRe

作者: Xiong忄s | 来源:发表于2017-11-21 11:36 被阅读224次

我的开发环境和版本

操作系统:win10

idea版本:IntelliJ IDEA 2017.2 x64

thymeleaf版本:3.0.6.RELEASE

Jrebel版本:7.0.13-SNAPSHOT

遇到的问题

使用jrebel能解决java代码热部署的问题,但是thymeleaf在修改后却要按Ctrl+Shift+F9编译一次才行,当然在这之前我已经关闭了thymeleaf的缓存。

一、项目配置

1、在pom中,引入spring-boot-devtools

将optional置为true可以避免该引用传递到其他模块。

2、关闭thymeleaf缓存

二、修改idea配置

1、开启Bulid project automatically

2、CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running

三、在谷歌浏览器中下载插件LiveReload

liveRoload

在浏览器中开启liveReload

实现上面的步骤,问题完美解决,写个文档存档。

相关文章

网友评论

      本文标题:idea+springboot+thymeleaf+liveRe

      本文链接:https://www.haomeiwen.com/subject/belrrxtx.html