IdeaIU配置热部署
-
1.首先在pom.xml里添加spring-boot-devtools
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> #添加spring-boot-devtools <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies>
2.打开IdeaIU setting->complier
3.在idea中 ,Shift+Ctrl+Alt+/,选择Registry
如图勾选