0、字符编码
1、IDEA 配置自己 maven
2、确认 IDEA 已经开启注解处理器
3、项目中过滤 .idea 、.iml
4、热部署 Devtools(启动不了)
1、导依赖
<!-- 热部署 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.2.2.RELEASE</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2、添加插件到pom.xml
<build>
<plugins>
<!--spring boot maven插件 , 可以将项目运行依赖的jar包打到我们的项目中-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.6.7</version>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
3、开启自动编译的选项
4、开启功能:在pom.xml中 按 ctrl+shift+alt+/
==> 选第一个