【发布时间】:2013-03-28 09:38:34
【问题描述】:
我已将 Java 更新到版本“1.7.0_09-icedtea”(之前是 1.6)并收到以下消息:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate be
an class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error the
@annotation pointcut expression is only supported at Java 5 compliance level or above
应用程序已使用 java 1.6 编译,并且编译器合规级别也设置为 1.6。我正在使用 spring 3.1.0
有没有人能够让 aspectj 在 Java 7 下工作?
【问题讨论】:
-
你使用的是什么版本的 aspectj?