在pom中添加内容
1 2 3 4 5 | < dependency > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-devtools</ artifactId > < optional >true</ optional > </ dependency > |
1 2 3 4 5 6 7 8 9 10 11 | < build > < plugins > < plugin > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-maven-plugin</ artifactId > < configuration > < fork >true</ fork > </ configuration > </ plugin > </ plugins > </ build > |
然后勾上 project - build automatically