spring-boot的配置(实时生效)

   模板引擎实时生效需要按:Ctrl+F9

  idea热部署

  1. pom文件添加代码
       <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <fork>true</fork>
                <addResources>true</addResources>
            </configuration>
        </plugin>

     

  1. 勾选 setting-Compiler-Buid project automatically;
  2. CTRL + SHIFT + A --> 查找 Registry --> 找到并勾选 --> compiler.automake.allow.when.app.running;

 

官方文档(可配置的参数)

debug: true # 开启springBoot的debug(可以在控制台看到已生效的配置类)

 

   Positive matches下面的代表已经匹配上的配置类

  

 

 Negative matches下面的代表没有匹配上的配置类

 

posted @ 2019-06-27 15:11  智走  阅读(713)  评论(0编辑  收藏  举报