子模块导入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
父模块导入
<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>
打开idea–>setting–>Build,Execution,Deployment–>Compiler
将箭头的几个选项标上
在父模块pom文件下使用快捷键Ctrl+Shift+Alt+/,将指定选项打勾