zoukankan      html  css  js  c++  java
  • nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed

    在用AOP 的时候出现了如下的错误,

    警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'atrthmeticCalculatorImpl' defined in file [D:workspaceSpringSpringAOPincommythspringaopimplAtrthmeticCalculatorImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 70
    execution(int com.myth.spring.aop.impl.AtrthmeticCalculatorImpl.*(int i,..))

    这个是因为前置或者后置的 execution(int com.myth.spring.aop.impl.AtrthmeticCalculatorImpl.*(int i,..)参数没写对导致的

    改成如下格式就好了  可以用*通配@After("execution(int com.myth.spring.aop.impl.AtrthmeticCalculatorImpl.*(int , int))")

  • 相关阅读:
    Hello World
    函数
    js基础
    html
    npm
    数据库
    前端了解的简要php
    模块
    scrapy爬虫
    php升级代码检查
  • 原文地址:https://www.cnblogs.com/mythdoraemon/p/7366095.html
Copyright © 2011-2022 走看看