springboot 热部署问题
后台热部署
如果不使用devtools,我们对类的任何修改都需要重启服务才能看到效果,这是不是很操蛋,现在介绍一个如果实现热部署的方法
1:pom.xml中增加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
2:pom.xml中增加以下插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
3:重新启动服务,这时候去修改类中任何内容,不需要再重启服务器即可看到效果
https://blog.csdn.net/whh743/article/details/68925953 引用别人博客
html 热部署:
1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。
2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running
这样就可以完整的实现项目开发的热部署了

浙公网安备 33010602011771号