1. 程式人生 > >執行insert時候控制檯列印[org/springframework/jdbc/support/sql-error-codes.xml]

執行insert時候控制檯列印[org/springframework/jdbc/support/sql-error-codes.xml]

[http-nio-1123-exec-4] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]

一直儲存不了資料,列印的這些資訊很難排查,
因為我們把異常資訊catch掉了,將異常堆疊資訊輸出就一目瞭然;

org.springframework.jdbc.BadSqlGrammarException: 
### Error updating database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit,offset ) VALUES( 1078860117702610944,null,916962304294,null,null,'chen001'' at line 1
### The error may involve com.xxx.xxx.dao.mapper.AuthenTransferMapper.insert-Inline
### The error occurred while setting parameters