Fork me on Gitee

Springboot热部署配置

添加依赖包:

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

编译配置里添加配置

<configuration>
<fork>true</fork>
</configuration>

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

  

posted @ 2021-02-27 22:24  JoePotter  阅读(83)  评论(0编辑  收藏  举报
``