Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0

2023-05-16

问题:
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.(…))

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0 的相关文章

随机推荐