mac intellij SpringBoot热部署问题

来源:互联网 发布:python 自然语言理解 编辑:程序博客网 时间:2024/06/03 11:36
一、设置 
1、command + SHIFT + A --> 查找make project automatically --> 选中 

2、command + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running 

二、添加依赖

  1. <dependency>  
  2.             <groupId>org.springframework.boot</groupId>  
  3.             <artifactId>spring-boot-devtools</artifactId>  
  4.             <optional>true</optional>  
  5. </dependency>

    1. <build>  
    2.         <plugins>  
    3.             <plugin>  
    4.                 <groupId>org.springframework.boot</groupId>  
    5.                 <artifactId>spring-boot-maven-plugin</artifactId>  
    6.                 <configuration>  
    7.                     <fork>true</fork>  
    8.                 </configuration>  
    9.             </plugin>  
    10.         </plugins>  
    11.     </build>  
      




0 0
原创粉丝点击