解决报错error the @annotation pointcut expression is only supported at Java 5

我们的项目由于jar包影响,只能用jdk1.6,但是在工程中引入jdk1.6,tomcat启动时一直报错,报错内容

error the @annotation pointcut expression is only supported at Java 5,

错误意思大致是:注释切入点表达式只支持在Java 5版本以上,我就纳闷了我安装的是jdk1.6啊,不应该是jdk版本低的问题。

最后查找了半天,才发现问题

解决办法:

windows---perference---tomcat---tomcat6.0下面有个jdk下拉框选项,发现选择的jdk和我引入到工程中的jdk版本不一致

解决报错error the @annotation pointcut expression is only supported at Java 5