SpingAOP 报错ed in file [F:\eclipse-workspace\DynamicAgent\bin\springaop\CalculateImp.class]: Initiali
来源:互联网 发布:淘宝开店教程自学网 编辑:程序博客网 时间:2024/06/06 00:04
在测试spingaop的时候,报了一条错误:
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculateImp' defined in file [F:\eclipse-workspace\DynamicAgent\bin\springaop\CalculateImp.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 0execution( public double springaop.CalculateImp.add(double,double)^Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculateImp' defined in file [F:\eclipse-workspace\DynamicAgent\bin\springaop\CalculateImp.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 0execution( public double springaop.CalculateImp.add(double,double)^
在网上找了找了好多类似错误信息的解决方法,可惜没有一个有用,在崩溃之际,突然看到了在配置切面类的地方有问题:
@Before("execution("double springaop.CalculateImp.add(double, double)")")
上面在execution里面应该没有双引号的!!
@Before("execution(double springaop.CalculateImp.add(double, double))")
阅读全文
0 0
- SpingAOP 报错ed in file [F:\eclipse-workspace\DynamicAgent\bin\springaop\CalculateImp.class]: Initiali
- eclipse报错Bad version number in .class file
- eclipse报Bad version number in.class file错误
- eclipse报错:Workspace at 'C:/v5/eclipse/workspace' in use or cannot be created, choose a different one
- eclipse报错:Workspace at 'C:/P/eclipse/workspace' in use or cannot be created, choose a different one
- 启动tomcat 报错Bad version number in .class file
- MyEclipse报错Bad version number in .class file
- 解决Eclipse打开某个workspace报错:The project description file (.project) for (项目名)
- Eclipse 启动时,报错,workspace in use or cannot be created
- eclipse 报错:Workspace in use or cannot be created, choose a different one.
- eclipse报错: workspace in use or cannot be created, choose a different one.
- eclipse: Bad version number in .class file
- Tomcat启动web项目报Bad version number in .class file (unable to load class ...)错
- Tomcat启动web项目报Bad version number in .class file (unable to load class ...)错
- nable to load configuration. - bean - jar:file:/F:/workspace/.metadata/.plugins/com.genuitec.eclipse
- springAOP 常见报错
- Eclipse + scala 报错 missing or invalid dependency detected while loading class file 'XXX.class'...
- Eclipse下启动Tomcat报错: The archive: F:/JSPDev/apache-tomcat-8.0.32/bin/bootstrap.jar which is reference
- C++ 内联函数
- 解决一张表内对不同类型的数据分页加载问题
- java 数组 List 相互转换
- light oj 1370-Bi-shoe and Phi-shoe (欧拉函数模板题)
- 程序员,如何从平庸走向理想
- SpingAOP 报错ed in file [F:\eclipse-workspace\DynamicAgent\bin\springaop\CalculateImp.class]: Initiali
- 【备忘】SpringMvc+Spring+Mybatis整合视频教程
- eclipse中git分支创建与合并(-)
- python 使用字典来调用函数,使用同名字符串调用函数
- 剑指offer_链表---合并两个排好序的链表
- 【Mybatis从0到1-015】Spring与MyBatis整合原始开发DAO(不推荐使用)
- [NOIP模拟赛]保证的利润
- 深入JVM——类型的生命周期(二)
- 线段树讲义