【報錯】常見JavaWeb/SSM錯誤

HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 4

查詢結果應該爲1  數據庫根據你提供的查詢條件,查出符合條件的記錄有多條,
檢查自己的數據庫-----
檢查自己的查詢判定條件---------



Multiple markers at this line - Unhandled exception type  UnsupportedEncodingException- Unhandl

多標記在這一行,Unhandled異常類型unsupportedencod
try catch一下

HTTP Status 500 - Request processing failed; nested exception is org.springframework.dao.Recoverable
message Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
 可能是數據庫c3p0配置不對,設置---連接失敗過後,重新連接的時間
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章