Intellij IDEA SpringBoot project hot deployment solution

Step 1: Import dependencies in the project pom file

<dependency>
    <!--Spring 官方提供的热部署插件 -->
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <version>1.4.3.RELEASE</version>
</dependency>

Step 2: Modify the configuration of Intellij IDEA

CTRL +SHIFT +A Find make project automatically and select it

CTRL +SHIFT+A Find Registry Find option compile.automake.allow.when.app.running

After restarting IDEA and starting the project, you can modify the code and static page templates in IDEA without restarting the SpringBoot project.

 

Guess you like

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