Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderPredictBizServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsQueryBizServiceImpl' defined in URL [jar:file:/home/admin/wdk-ums-outbound-misc-portal/target/wdk-ums-outbound-misc-portal/BOOT-INF/lib/biz-1.0.0-SNAPSHOT.jar!/com/wdk/ums/outbound/misc/portal/biz/monitor/service/impl/MetricsQueryBizServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'enableCacheInterceptor' is expected to be of type 'org.aopalliance.aop.Advice' but was actually of type 'org.springframework.aop.aspectj.AspectJExpressionPointcut'
Java的动态代理是使用接口实现,所以在:
Resource的时候要是接口,不能是实现类。