1,当服务器有数据改动时,web不能及时得到最新的数据,这时需要热部署
2,在你的子项目的pom.xml加入
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
3.点击项目左上角的file -->Setting -->Compiler,然后勾选Build project automatically
4.CTRL+ALT+SHIFT+/ 组合键打开 点击Registry
勾选 compiler.automake.allow.when.app.running
然后在不重启的情况下改变里面的值,通过web页面(浏览器打开http://localhost:8080/hello)的刷新就可以自动获取到项目里最新的数据