1. 程式人生 > >關於springboot專案報current request is not type的錯誤

關於springboot專案報current request is not type的錯誤

springboot專案啟動之後,傳送請求時報current request is not type[org.apache.catalina.servlet4preview.http.HttpServletRequest]的錯誤,可能controller引入的httpservletreques有問題,可能引入的是org.apache.catalina.servlet4preview.http.HttpServletRequest,但實際應該是javax.servlet.http.HttpServletRequest