SpringBoot development environment hot deployment

After developing modify the code without having to restart the idea of ​​service.

Add a module dependency

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

 

2 Add the parent POM.XML

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

 

3 Set Build Options

 

 4. Update Value

Ctrl + shift + alt + / recall select Registry Maintenance

 

Selected:

compiler.automake.allow.when.app.running

actionSystem.assertFocusAccessFromEdt

 

 

 5. Restart Intellij IDEA

 

Guess you like

Origin www.cnblogs.com/vipsoft/p/12591771.html