标签:ssh myeclipse 异常 multiple annotations
SSH配置环境都正常,但是每次执行到Action中的方法时就不执行课,而且不报任何错误。Action中的方法封装的是业务层,业务层封装DAO层,检查了一天才发现错误在哪。
在applicationContext.xml中报了一个异常,如:
Multiple annotations found at this line:
- Exception ‘com/dao/StudentDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/dao/CourseDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/dao/ElectiveDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/dao/SignsDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/dao/TeacherDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/biz/impl/StudentBiz : Unsupported major.minor version
51.0‘
- Exception ‘com/dao/DocumentDAO : Unsupported major.minor version
51.0‘
- Exception ‘com/dao/TopicDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/biz/impl/TeacherBiz : Unsupported major.minor version
51.0‘
- Exception ‘com/util/ImportExcelStuData : Unsupported major.minor version
51.0‘
- Exception ‘com/dao/AdminDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/biz/impl/AdminBiz : Unsupported major.minor version 51.0‘
- Exception ‘com/dao/RulesDAO : Unsupported major.minor version 51.0‘
- Exception ‘com/action/AdminAction : Unsupported major.minor version
51.0‘
- Exception ‘com/util/ImportExcelTeacData : Unsupported major.minor
version 51.0‘
- Exception ‘com/dao/TempelectiveDAO : Unsupported major.minor version
51.0‘
一开始没有注意,可是最后就是这个的问题。解决办法:
项目-->右键-->preferences-->Myeclipse-->Project Facets-->找到java后,将jdk版本改为1.6(1.7就会报此异常)。
当异常没有,或者当出现如下图标记的applicationContext.xml后才算正常
SSH配置环境都正常,但是每次执行到Action中的方法时就中断了,而且不报任何错误
标签:ssh myeclipse 异常 multiple annotations
原文地址:http://blog.csdn.net/u013068377/article/details/42886883