错误信息:
==> Preparing: > select id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp_spsj from tb_yw_ztry where 1=1
==> Parameters:
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@654c687d]
2019-05-31 11:27:16.818 ERROR 9460 --- [nio-9401-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>
select
id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp' at line 1
### The error may exist in file [E:\eclipse-workspace\clue-parent\clue-dao\clue-dao-ztry\target\classes\cn\id5\mapper\ztry\sqlmap\ZtryMapper.xml]
### The error may involve cn.id5.mapper.ztry.ZtryMapper.queryZtryPageList-Inline
### The error occurred while setting parameters
### SQL: > select id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp_spsj from tb_yw_ztry where 1=1
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>
select
id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp' at line 1
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>
select
id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp' at line 1] with root cause
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '>
select
id, ztrybh, xm, zjhm, xxdjdw_gajgmc,xxdjdw_gajgjgdm,djsp' at line 1
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[mysql-connector-java-8.0.15.jar:8.0.15]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.15.jar:8.0.15]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.15.jar:8.0.15]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:970) ~[mysql-connector-java-8.0.15.jar:8.0.15]
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:387) ~[mysql-connector-java-8.0.15.jar:8.0.15]
at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)