SEVERE: Servlet.service() for servlet [SpringMVC] in context with path [] threw exception ........


 

 運行項目項目后,因為前端用了layui框架,所以頁面顯示接口異常,

 

 查看tomcat日志,發現報了這個錯誤,關鍵是我犯了不止一次這個錯誤。所以記下來。

Feb 28, 2019 5:18:39 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet.service() for servlet [SpringMVC] in context with path [] threw exception 
[Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException:
nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ''.
Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression:
[org.apache.ibatis.ognl.ParseException: Encountered "<EOF>" at line 1, column 0. Was expecting one of: ":" ... "not" ... "+" ... "-" ... "~" ... "!" ... "(" ... "true" ... "false" ... "null" ... "#this" ... "#root" ... "#" ... "[" ... "{" ... "@" ... "new" ... <IDENT> ... <DYNAMIC_SUBSCRIPT> ... "\'" ... "`" ... "\"" ... <INT_LITERAL> ... <FLT_LITERAL> ... ]] with root cause org.apache.ibatis.ognl.ParseException: Encountered "<EOF>" at line 1, column 0.

 

原因是Mapper.xml文件中if判斷條件沒有寫

          <if test="">// test="aaa!=null" 不寫報錯
              AND LOCATE(#{Parameter},字段)>0
      </if>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

---恢復內容結束---


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 報錯:嚴重: Servlet.service() for servlet [springmvc] in context with path [ ] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause ------>Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause 錯誤:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.Nul 關於Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause錯誤提示 ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,175] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception thymeleaf: Could not parse as expression: "" 【錯誤日志】嚴重: Servlet.service() for servlet SpringDispatcherServlet threw exception java.lang.IllegalArgumen Websocket發消息出現Servlet.service() for servlet [dispatcherServlet] in context with path [] th 關於springmvc的context:component-scan 標簽使用時HTTP Status 500 - Servlet.init() for servlet springmvc threw exception的問題
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM