错误提示:java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.boco.gcp.util.db.InitDataBaseListener)
造成这种过错是ni的支撑Tomcat运行的JDK版本与支撑application运行的JDK(myeclipse的jdk)版本不一致导致的. 把它们的JDK版本改成一致步骤如下: 查看myeclipse的jdk版本:Window --> Preferences -->Java --> compiler中的compiler compliance level对应的下拉菜单中选择JDK版本. 查看tomcat的jdk版本:Window --> Preferences -->MyEclipse --> Servers -->Tomcat --> Tomcat n.x -->JDK中的Tomcat JDK name下的下拉菜单中选择自身电脑上安装的JDK版本(必需与步骤1中的JDK版本一致)