Spring Boot——[Spring Boot Configuration Annotation Processor not found in classpath]解决方案
问题描述
使用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]解决方案相关推荐
- SpringBoot项目中获取yml文件的属性时实体属性类出现Spring Boot Configuration Annotation Processor not found in classpath
1.SpringBoot项目的项目结构如下: 2.属性实体类 上面出现了Spring Boot Configuration Annotation Processor not found in clas ...
- spring Boot Configuration Annotation Processor not fount in classpath
在pox在添加: <!--生成自定义配置的元数据信息--> <dependency><groupId>org.springframework.boot</gr ...
- spring boot configuration annotation processor not found in classpath问题解决
1.点击提示的右上角工具图标 2.取消show notification panel勾选项. 转载于:https://www.cnblogs.com/debug-zheng/p/11074535.ht ...
- 解决spring boot1.5以上版本@ConfigurationProperties提示“Spring Boot Configuration Annotation Processor not..
Springboot1.5以上版本,在使用 @ConfigurationProperties注解的时候会提示"Spring Boot Configuration Annotation Pro ...
- Spring Boot之 Configuration Annotation Proessor not found in classpath解决方法
出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationPropertie ...
- Spring Boot 错误 Configuration Annotation Proessor not found in classpath
出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationPropertie ...
- SpringBoot Configuration Annotation Processor not configured
一.Spring boot自定义配置实现自动提示 @ConfigurationProperties 的作用: 让JavaBean中属性值要和配置文件进行映射 @Getter @Setter @Conf ...
- 项目可以运行但是在当前controller类顶部出现Spring Boot Configuration Annotation Proces
学习pringBoot项目时,在写controller时发现,项目可以运行但是在当前controller类顶部出现Spring Boot Configuration Annotation Proces ...
- Spring Boot @EnableAutoConfiguration和 @Configuration的区别
Spring Boot @EnableAutoConfiguration和 @Configuration的区别 在Spring Boot中,我们会使用@SpringBootApplication来开启 ...
最新文章
- 基于DL的计算机视觉方法热度高涨,传统方法就可以偏废?
- 10 年了,腾讯微信后台第一天提交的代码曝光 | 每日趣闻
- windows ce 5.0 + vs2005 + sql数据库_开发注意事项
- maven项目中如何直接访问某一个页面_整一个自己的docker镜像
- RabbitMQ(三):Exchange交换器--fanout
- query和prototype库冲突的解决方法
- ie下滚动条样式设置
- 应用安全 - 渗透测试 - .net网站
- html window 属性,html中window对象top 、self 、parent 等属性
- java fileinputstream 安全管理器校验失败_Spring Boot 如何做参数校验?
- zabbix监控的配置
- Java基础面试题大全
- java.exe 0xc000012d_应用程序无法正常启动 0xc000012d
- springcloud如何搭建支付宝pay-service微服务
- 2021/04/10 OJ每日一题 1190: 按出生日期排序(结构体专题)python
- [Mysql] LEFT函数 | RIGHT函数
- 初级调色转档CameraRaw
- RSA--------------
- WIFI模块接入ONENET步骤
- [转载]java图片缩放处理
热门文章
- 在SQLSERVER EXPRESS 2005中安装northwind和pubs数据库。
- cgi备份还原和ghost有什么区别_装系统教程!如何用ghost安装系统(下)!小白也能变装机大神!...
- mac 黑窗口连接mysql_Mac系统Python、PyCharm安装及使用方法详解
- Java中main函数只能调用同类中的静态方法?
- mysql 临时文件目录_MySQL数据库的临时文件究竟储存在哪里
- mysql 字段加comments_Mysql添加注释(comment)(转)
- c语言怎么在win7上运行,C语言做的中国象棋,分享,问怎么在WIN7下运行
- oracle数据库的model,Oracle 11g学习笔记–model子句
- python小课笔记_python第三课笔记
- 直播 | ACL 2021论文解读:基于对抗学习的事件抽取预训练模型