Automatic compilation configuration in Spring boot

MAVEN automatic compilation configuration

Hot deploy function

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

Spring Boot's Plugin configuration can automatically package applications as war or jar applications. add build-plugin

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

For Eclipse, it also needs to projectbe Build Automaticallyenabled in .
There is generally no problem in normal operation, but when the package is not available or has problems, it often leads to the failure of hot deployment. You need to delete the problematic package from Libraries in the Java Build Path of the current project and download it again.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325326764&siteId=291194637