?1.Target runtime com.genuitec.runtime.generic.jee60 is not defined.?
解决方案是:在工程目录下的.settings文件夹里,打开org.eclipse.wst.common.project.facet.core.xml文件,其内容为:
<?xml version="1.0" encoding="UTF-8"?> 2 <faceted-project> 3 <runtime name="com.genuitec.runtime.generic.jee60"/> 4 <fixed facet="wst.jsdt.web"/> 5 <fixed facet="jst.web"/> 6 <fixed facet="java"/> 7 <installed facet="java" version="1.6"/> 8 <installed facet="jst.web" version="3.0"/> 9 <installed facet="jst.web.jstl" version="1.2.1"/>10 <installed facet="wst.jsdt.web" version="1.0"/>11 </faceted-project>
更改<runtime name="?">内容为Preference->Server-RunTime Environment下的服务名称,如下:
<?xml version="1.0" encoding="UTF-8"?> 2 <faceted-project> 3 <runtime name="Apache Tomcat v7.0"/> 4 <fixed facet="wst.jsdt.web"/> 5 <fixed facet="jst.web"/> 6 <fixed facet="java"/> 7 <installed facet="java" version="1.6"/> 8 <installed facet="jst.web" version="3.0"/> 9 <installed facet="jst.web.jstl" version="1.2.1"/>10 <installed facet="wst.jsdt.web" version="1.0"/>11 </faceted-project>
2.AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
解决办法:
1)降低JDK版本(方便,简单)
2)修改spring源码,然后编译生成先的JAR文件。(比较麻烦,不建议采用)