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.bootgroupId>  
  3.             <artifactId>spring-boot-devtoolsartifactId>  
  4.             <optional>trueoptional>  
  5. dependency>

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




你可能感兴趣的:(Spring,boot)