Despliegue en caliente de la configuración SpringBoot2.x

pom.xml

  1. Añadir spring-boot-devtools

  2. Agregar tenedor a verdadero

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <!--编译时不会打包-->
  <scope>runtime</scope>
</dependency>

<build>
  <plugins>
    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <!--添加<fork>true</fork>-->
      <configuration>
        <fork>true</fork>
      </configuration>
    </plugin>
  </plugins>
</build>	

Configuración IDEA

  1. Verifique y configure el proyecto de compilación automáticamente en Preferencias
  2. Verifique y configure compiler.automake.allow.when.app.running en cmd + alt + shift + / Registry


Supongo que te gusta

Origin www.cnblogs.com/Peter2014/p/12751653.html
Recomendado
Clasificación