{ “code”: “-1”, “msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Ex
前端發起請求以後返回以下資料
{
“code”: “-1”,
“msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 6”,
“info”: null,
“error”: null
}
提示資訊顯示期待得到一個或者null的結果集,但是select語句返回了六個結果。很明顯是SQL語句的問題,可以檢視程式碼,找到對應的SQL語句,在navicat等工具下執行一次,看下結果個數
相關文章
- nested exception is java.lang.NoSuchMethodException: 實體類.()ExceptionJava
- nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379ExceptionRedislocalhost
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGramHTTPAIExceptionSpringFrameworkJDBCSQL
- ex10.1_1
- ex10.2_1
- 報錯:nested exception is java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8BufferExceptionJavaError
- Unknown column ‘name‘ in ‘field list‘ ; bad SQL grammar []; nested exception is com.mysql.jdbc.excepExceptionMySqlJDBC
- 解決bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 無效字元SQLExceptionJavaError字元
- dubbo和spring結合報錯 Invocation of init method failed; nested exception is java.lang.IllegalArgumentExceSpringAIExceptionJava
- ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00909: 引數個數無效SQLExceptionJavaError
- BUU CODE REVIEW 1 1View
- 資料庫實現原理#1(Nested Loop Join)資料庫OOP
- if ex
- msg檔案檢視工具:Msg Viewer Pro for Mac 直裝版ViewMac
- solidity的msg.valueSolid
- cornerstone中msg型別解析型別
- 規範你的commit msgMIT
- [Vue Router] Nested RoutesVue
- Ex-menu
- ex8.3
- ex8.4
- ex8.5
- ex8.6
- ex8.7
- ex8.8
- 吳恩達機器學習 ex1 python實現吳恩達機器學習Python
- ElasticSearch多層nested查詢、nested過濾排除非結果內容Elasticsearch
- Oracle exceptionOracleException
- Ex-shopping car
- ex10.1_2
- ex10.2_2
- 在 ROS 中使用 Protobuf 替代 ros msgROS
- 訊息通知 使用 [ Web-msg-sender]Web
- treevalue——Master Nested Data Like TensorAST
- From BIO to NIO —— NIO source code interpretation 1
- EX2: 用CImg改寫canny演算法 EX2演算法
- 異常(Exception)Exception
- Exception和ErrorExceptionError