aop参数绑定时的bug

Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut

出错原因:
<aop:pointcut id="mypoint" expression="execution(* com.jby.test.Demo.demo1(String,int)) and args(name,age)"/>
代码中and前面没敲空格

猜你喜欢

转载自www.cnblogs.com/B-U-G/p/12010308.html
今日推荐