org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calc' defined in file [G:\study\tutorial\ssm\spring_05\target\classes\com\atguigu\aop\CalcImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.atguigu.aop [Xlint:invalidAbsoluteTypeName]
发现是切点表达式少写了个点
错误:
//@Pointcut("execution(* com.atguigu.aop.CalcImpl*(..))")
正确
//@Pointcut("execution(* com.atguigu.aop.CalcImpl.*(..))")