IDEA 2018创建ssm工程 运行时出现500错误


IDEA 2018

JDK 1.8

Maven3.5.4

Tomcat 9.0.10

登陆首页没问题,输入其他地址跳转时出现下面的错误

 

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Handler processing failed; nested exception is java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

详情如下图:

出现上面的问题可能是jar包不兼容导致的,解决办法:

将Tomcat换成8.5版本,运行正常!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM