热部署
为什么添加热部署?
是为了修改代码不需要重启项目,springboot会自动重启项目。
1.添加依赖依赖
org.springframework.boot spring-boot-devtools 2.5.4 true
2.配置idea
按Ctrl+Alt+S显示。
勾选complier.automake.allow.when.app.running
为什么添加热部署?
是为了修改代码不需要重启项目,springboot会自动重启项目。
1.添加依赖依赖
org.springframework.boot spring-boot-devtools 2.5.4 true
2.配置idea
按Ctrl+Alt+S显示。
勾选complier.automake.allow.when.app.running