Description:
The bean 'elsJobRefreshTime' could not be injected as a 'com.btzh.mis.sgms.mdhj.job.Els.ElsJobRefreshTime' because it is a JDK dynamic proxy that implements:
com.dangdang.ddframe.job.api.simple.SimpleJob
https://blog.youkuaiyun.com/w605283073/article/details/90454057
如果是springboot项目,在配置里设置
spring.aop.proxy-target-class=true
本文详细介绍了在SpringBoot项目中遇到的关于ElsJobRefreshTime注入失败的问题,该问题是由于JDK动态代理导致。文章提供了有效的解决方案,即在配置文件中设置'spring.aop.proxy-target-class=true',以确保正确注入并实现SimpleJob接口。
1642

被折叠的 条评论
为什么被折叠?



