idea springboot devtools实现热部署

1、在pom文件添加依赖包

<!--添加热部署依赖-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
		</dependency>

2.修改pom文件

<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<fork>true</fork>//必须得写,否则不起作用
				</configuration>
			</plugin>

		</plugins>
	</build>

3.file-setting下

 
 

4. shift+ctrl+alt+/



4.重启项目就好了

猜你喜欢

转载自blog.csdn.net/forever_chm/article/details/80080825