Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
属实难顶,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource这个包是找不到的
注入bean异常,出现这个异常就是找不到对应的JavaBean了,能够导致JavaBean注入失败的原因常见有以下几种:
对应的 bean 没有添加注解;
对应的 bean 添加注解错误,例如将 Spring 的@Service错选成 dubbo 的;
选择错误的自动注入方法等