问题:
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.kang.service [Xlint:invalidAbsoluteTypeName]
原因:
aop:pointcut 切点配置路径有误。
解决:
原配置:execution(* com.kang.service.(…))
修改为:
execution( com.kang.service.ServiceImpl.(…))
Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0
最新推荐文章于 2024-06-17 18:28:19 发布