1.eclipse
pom
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.1.4.RELEASE</version> </dependency>
--------------------------------------------
2.idea
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.1.4.RELEASE</version> </dependency>
在setting进行设置
按ctrl +shift+Alt+/ 打开Registry进行设置