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前面没敲空格

posted @ 2019-12-09 12:24  起床敲代码  阅读(264)  评论(0)    收藏  举报