Pointcut is not well-formed:execution(*com.beans..*.*(..))

    技术2023-08-14  86

    aop中面向切面编程,搞了一下午,惨痛的经历 报错

    七月 03, 2020 3:01:02 下午 org.springframework.context.support.AbstractApplicationContext refresh 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'user' defined in file [E:\java\spring\spring_aop\bin\com\beans\User.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 26 execution(*com.beans..*.*(..)) ^

    *是一个通配符,需要和包名中间有一个空格

    Processed: 0.013, SQL: 9