Spring配置文件yaml配置提示插件
自定义的类和配置文件绑定一般没有提示。
以下操作就有了
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
第一个为配置插件在pom文件中需要导入的依赖
第二个为在完成后加入到打包文件中防止多余无关项目的程序加载到JVM中影响性能