spring boot 热启动

第一步:在项目 pom.xml 中添加 spring-boot-devtools 依赖

                org.springframework.boot        spring-boot-devtools        true    

第二步:设置 idea 热编译,需要设置两个地方

2.1 打开设置:在Build,Execotion,Deployment -> Compiler -> Build Project automatically

2.2 Advanced Settings -> Allow auto-make start even if developed application is currently runing


发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章