springboot 开发环境热启动

1.pom.xml 中添加依赖

   


<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-devtoolsartifactId>
    <optional>trueoptional>
dependency>

2. 修改idea  build project automatically (勾选)
   file->settings->build,execution,deployment -> compile  

3. alt+shift+ctrl+/ 设置register  (勾选)
compiler.automake.allow.when.app.running

你可能感兴趣的:(springboot 开发环境热启动)