idea springboot devtools to achieve hot deployment

1. Add dependencies to the pom file

<!--Add hot deployment dependencies-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
		</dependency>

2. Modify the pom file

<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<fork>true</fork>//Must be written, otherwise it will not work
				</configuration>
			</plugin>

		</plugins>
	</build>

3. Under file-setting

 
 

4. shift+ctrl+alt+/



4. Just restart the project

Guess you like

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