问题描述:
在练习spring-aop中,配置完业务类和切面类之后,无法启动spring
8月 05, 2021 10:36:41 上午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in file [D:\java\idea\spring01\target\classes\com\test01\dao\Dao.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
原因分析:
切面类中方法参数没有设对
解决方案:
JoinPoint对象需放在方法参数的第一位