问题描述

使用Spring Boot开发的过程中,写读取Properties配置文件的配置类时提示Spring Boot configuration annotation processor not found in classpath,如下截图所示:

官方文档

https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor

问题分析

解决方案

在maven中导入自动装配映射的依赖包

在pom.xml文件中加入依赖spring-boot-configuration-processor

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

参考文章

https://blog.csdn.net/qinxian20120/article/details/80252894

https://blog.csdn.net/weixin_38816859/article/details/80301827

Spring Boot——[Spring Boot Configuration Annotation Processor not found in classpath]解决方案相关推荐

  1. SpringBoot项目中获取yml文件的属性时实体属性类出现Spring Boot Configuration Annotation Processor not found in classpath

    1.SpringBoot项目的项目结构如下: 2.属性实体类 上面出现了Spring Boot Configuration Annotation Processor not found in clas ...

  2. spring Boot Configuration Annotation Processor not fount in classpath

    在pox在添加: <!--生成自定义配置的元数据信息--> <dependency><groupId>org.springframework.boot</gr ...

  3. spring boot configuration annotation processor not found in classpath问题解决

    1.点击提示的右上角工具图标 2.取消show notification panel勾选项. 转载于:https://www.cnblogs.com/debug-zheng/p/11074535.ht ...

  4. 解决spring boot1.5以上版本@ConfigurationProperties提示“Spring Boot Configuration Annotation Processor not..

    Springboot1.5以上版本,在使用 @ConfigurationProperties注解的时候会提示"Spring Boot Configuration Annotation Pro ...

  5. Spring Boot之 Configuration Annotation Proessor not found in classpath解决方法

    出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationPropertie ...

  6. Spring Boot 错误 Configuration Annotation Proessor not found in classpath

    出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationPropertie ...

  7. SpringBoot Configuration Annotation Processor not configured

    一.Spring boot自定义配置实现自动提示 @ConfigurationProperties 的作用: 让JavaBean中属性值要和配置文件进行映射 @Getter @Setter @Conf ...

  8. 项目可以运行但是在当前controller类顶部出现Spring Boot Configuration Annotation Proces

    学习pringBoot项目时,在写controller时发现,项目可以运行但是在当前controller类顶部出现Spring Boot Configuration Annotation Proces ...

  9. Spring Boot @EnableAutoConfiguration和 @Configuration的区别

    Spring Boot @EnableAutoConfiguration和 @Configuration的区别 在Spring Boot中,我们会使用@SpringBootApplication来开启 ...

最新文章

  1. 基于DL的计算机视觉方法热度高涨,传统方法就可以偏废?
  2. 10 年了,腾讯微信后台第一天提交的代码曝光 | 每日趣闻
  3. windows ce 5.0 + vs2005 + sql数据库_开发注意事项
  4. maven项目中如何直接访问某一个页面_整一个自己的docker镜像
  5. RabbitMQ(三):Exchange交换器--fanout
  6. query和prototype库冲突的解决方法
  7. ie下滚动条样式设置
  8. 应用安全 - 渗透测试 - .net网站
  9. html window 属性,html中window对象top 、self 、parent 等属性
  10. java fileinputstream 安全管理器校验失败_Spring Boot 如何做参数校验?
  11. zabbix监控的配置
  12. Java基础面试题大全
  13. java.exe 0xc000012d_应用程序无法正常启动 0xc000012d
  14. springcloud如何搭建支付宝pay-service微服务
  15. 2021/04/10 OJ每日一题 1190: 按出生日期排序(结构体专题)python
  16. [Mysql] LEFT函数 | RIGHT函数
  17. 初级调色转档CameraRaw
  18. RSA--------------
  19. WIFI模块接入ONENET步骤
  20. [转载]java图片缩放处理

热门文章

  1. 在SQLSERVER EXPRESS 2005中安装northwind和pubs数据库。
  2. cgi备份还原和ghost有什么区别_装系统教程!如何用ghost安装系统(下)!小白也能变装机大神!...
  3. mac 黑窗口连接mysql_Mac系统Python、PyCharm安装及使用方法详解
  4. Java中main函数只能调用同类中的静态方法?
  5. mysql 临时文件目录_MySQL数据库的临时文件究竟储存在哪里
  6. mysql 字段加comments_Mysql添加注释(comment)(转)
  7. c语言怎么在win7上运行,C语言做的中国象棋,分享,问怎么在WIN7下运行
  8. oracle数据库的model,Oracle 11g学习笔记–model子句
  9. python小课笔记_python第三课笔记
  10. 直播 | ACL 2021论文解读:基于对抗学习的事件抽取预训练模型