SpringBoot configuration Annotation Processor not configured问题解决

问题:

SpringBoot configuration Annotation Processor not configured的意思是:
未处理SpringBoot配置注释处理器
在这里插入图片描述

解决:

在pom.xml文件中引入依赖

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-configuration-processor</artifactId>
			<optional>true</optional>
		</dependency>

如出现以下问题:
在这里插入图片描述
解决:
1.主启动类上添加@EnableConfigurationProperties
在这里插入图片描述
2.
在这里插入图片描述
3.
在这里插入图片描述
最后重启或点一下蓝色的提示即可

加依赖的作用:
有代码提示,很方便快捷。
在这里插入图片描述