1.添加依赖
compile 'org.springframework.boot:spring-boot-devtools'
2.设置IDEA
3.保存后回到主页面,Shift+Ctrl+Alt+/ 选择Registry
4.勾选complier.automake.allow.when.app.running
5.重启项目 完成
本文详细介绍如何在IntelliJ IDEA中配置热部署,通过添加Spring Boot DevTools依赖及调整IDEA设置,实现代码修改后的自动热更新,极大提升开发效率。
1.添加依赖
compile 'org.springframework.boot:spring-boot-devtools'
2.设置IDEA
3.保存后回到主页面,Shift+Ctrl+Alt+/ 选择Registry
4.勾选complier.automake.allow.when.app.running
5.重启项目 完成
852
2896

被折叠的 条评论
为什么被折叠?