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