【异常】spring.factories机制解决外部配置文件无法被读取提示Field XXX in XXX that could not be found的问题
2023-09-14 09:04:55 时间
一、异常内容
SpringCloud项目中 thirdparty-api 子服务无法正常启动,提示了如下的异常内容。
***************************
APPLICATION FAILED TO START
***************************
Description:
Field jDConfigProperties in thirdparty.api.service.impl.jd.JDTokenServiceImpl required a bean of type 'mall.common.config.JDConfigProperties' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'mall.common.config.JDConfigProperties' in your configuration.
相关文章
- JavaWeb_(SpringMVC框架)测试SpringMVC&Spring&MyBatis三大整合
- spring framework体系结构及模块jar依赖关系
- Spring Boot优雅地处理404异常
- spring boot项目如何测试,如何部署
- spring boot: GlobalDefaultExceptionHandler方法内的友好错误提示,全局异常捕获
- Spring多线程注入时报null异常
- Spring Data —— 完全统一的API?
- 04-spring-控制反转
- Spring事物隔离级别及事物传播行为@Transactional实现
- Spring MVC--自定义HttpMessageConverter接收JSON格式的数据
- spring boot发送普通文本邮件/HTML邮件/附件邮件/图片邮件完整代码
- Spring读源码系列之AOP--04---proxyFactory创建代理对象
- Spring 视图和视图解析器简介
- Spring Quartz定时器 配置文件详解
- Spring Boot 多模块项目 打包报错 Unable to find main class 异常详解
- 【异常】spring-boot-starter-data-elasticsearch 解决远程主机强迫关闭了一个现有的连接。
- [Spring实战系列](17)编写切点与声明切面
- spring代码异常捕获到logback logging.config=logback-spring.xml文件中不能输出异常e.printStackTrace
- Spring Cloud Zuul过滤器介绍及使用(传递数据、拦截请求和异常处理)
- Spring MVC使用@ExceptionHandler注解异常处理