更新文件不用重启springboot

只需要添加依赖:

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>springloaded</artifactId>
		<version>1.2.6.RELEASE</version>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-devtools</artifactId>
	</dependency>

通过添加以上依赖,每次我们修改文件,springboot会为我们自动重启,美滋滋,嘿嘿嘿

猜你喜欢

转载自blog.csdn.net/weixin_38820375/article/details/87304248