1.tomcat的锅 tomcat的版本不一致
解决方法:右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server
切换到Java Build Path界面中的Orader and Export,选择Tomcat
2.jdk版本的锅
跟tomcat差不多 就是在选择JRE System Library 不同
1.tomcat的锅 tomcat的版本不一致
解决方法:右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server
切换到Java Build Path界面中的Orader and Export,选择Tomcat
2.jdk版本的锅
跟tomcat差不多 就是在选择JRE System Library 不同