Spring AOP报错 error at ::0 name binding only allowed in target, this, and args pcds
来源:互联网 发布:c语言.h文件 编辑:程序博客网 时间:2024/06/06 18:54
早上写了一个切面,定义大致如下:
@Component@Aspectpublic class QuestionAspect { @AfterReturning(value = "execution(* com.xxx.service.SrviceImpl.create(vo)) && args(vo)") public void createQuestion(QuestionVo vo) { //TODO }}
部署完运行报错:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 name binding only allowed in target, this, and args pcds
后来检查下,原来是切入的方法参数不能直接用参数名,参数名只能应用在target注解、this、args注解中,所以调整下
@Component@Aspectpublic class QuestionAspect { @AfterReturning(value = "execution(* com.xxx.service.SrviceImpl.create(..)) && args(vo)") public void createQuestion(QuestionVo vo) { //TODO }}
这样,运行起来就正常了
阅读全文
0 0
- Spring AOP报错 error at ::0 name binding only allowed in target, this, and args pcds
- Spring AOP 所有切入点指示符详解(execution,within,this,target,args,@within,@target,@args,@annotation)
- 报错error C3872: '0x3000': this character is not allowed in an identifier
- Spring AOP 错误error at ::0 formal unbound in pointcut
- spring aop xml------error at ::0 formal unbound in pointcut
- 报错:”Gradle error : Write access is allowed from event dispatch thread only in android studio
- 报错:”Gradle error : Write access is allowed from event dispatch thread only in android studio
- 报错:”Gradle error : Write access is allowed from event dispatch thread only in android studio
- spring4 aop 带参数表达式报错 error at ::0 formal unbound in pointcut
- 引入AOP 报错 error at ::0 formal unbound in pointcut
- Spring+Hibernate报错:Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)
- SQL SERVER – Fix: Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed her
- Spring Aop 报错error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator
- Spring Aop 报错error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator
- spring aop学习中遇到的问题——error at ::0 formal unbound in pointcut
- error at ::0 formal unbound in pointcut 报错
- simplexml_load_string报错:XML declaration allowed only at the start of the document
- spring aop 报错Pointcut is not well-formed: expecting ‘name pattern’ at character position 48 executi
- node.js -buffer
- 利用雅虎小型企业服务平台的目录遍历漏洞查看客户的信用卡信息
- 鲜为人知的 Linux 命令(5)
- iOS 开发是否要采用 React Native?
- LeetCode-Easy刷题(9) Implement strStr()
- Spring AOP报错 error at ::0 name binding only allowed in target, this, and args pcds
- 冒泡排序
- LeetCode-Easy刷题(10) Search Insert Position
- hibernate 查询
- msq(2)jdbc
- 关于memcached基本操作命令
- 如何绕过现代Process Hollowing检测机制
- 可执行的移动端网站seo技术
- 每天一道算法题——数值的整数次幂