mac intellij SpringBoot热部署问题

一、设置 
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>  
      




发布了69 篇原创文章 · 获赞 16 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/huanglei1234567890/article/details/65936784