热部署devtools(开发阶段时使用)

1.Adding devtools to your project

子模块的pom中

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

2.Adding plugin to your pom.xml

父工程的pom中

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

3.Enabling automatic build

image

4.Update the value of

idea的快捷键,ctrl+shift+alt+/,选registry。
image

新版本

image

5.重启IDEA

posted @ 2021-11-20 16:01  DingJie1024  阅读(34)  评论(0编辑  收藏  举报