MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Error preparing statement.Cause: com.google.common.util.concurrent.UncheckedExecutionExcept
·
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Error preparing statement. Cause: com.google.common.util.concurrent.UncheckedExecutionException: org.apache.shardingsphere.sql.parser.exception.SQLParsingException: You have an error in your SQL syntax
项目启动后调用方法一直报这个报错,检查了很多遍,在数据库直接执行sql是可以正常运行的,但项目中调用方法一直报错,在网上查了很多资料,原来是我的sql中有关键字
把关键字用引号引起来,在项目中调方法就会出错了。
更多推荐
已为社区贡献1条内容
所有评论(0)