关于org.springframework.jdbc.BadSqlGrammarException
来源:互联网 发布:蓝月传奇淘宝礼包 编辑:程序博客网 时间:2024/06/15 08:27
今天在测试的时候允许测试类突然报错了,报错内容是
然后看了一下我的mapper中的Sql语句,把语句放到Navicat for MySql里面去允许发现也没报错能查出来语句,于是我纳闷了很久,于是我仔细看了一下错误语句,说我的查询语句里面的order by id desc有错误,结果在朋友的帮助下解决了这个问题,我的mapper里面的语句是
分号就代表结束了,所以order by id desc 不会接着上面的语句运行。
把语句位置换一下
写这个就是提醒自己以后不要犯这种低级错误了。
阅读全文
1 0
- 关于org.springframework.jdbc.BadSqlGrammarException
- org.springframework.jdbc.BadSqlGrammarException:
- org.springframework.jdbc.BadSqlGrammarException:
- SSM_bug整理:org.springframework.jdbc.BadSqlGrammarException:
- org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [SELECT * FROM
- Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException
- Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException:
- org.springframework.jdbc.UncategorizedSQLException:
- org.springframework.jdbc.object
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.CannotGetJdbcConnectionException
- org.springframework.jdbc.core.JdbcTemplate
- org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
- 异常org.springframework.jdbc.UncategorizedSQLException: Hibernate operation
- disabled 与 readonly的区别
- @GeneratedValue
- SQLite 错误码
- python 字典
- 2017.07.11【NOIP提高组】模拟赛B组小结
- 关于org.springframework.jdbc.BadSqlGrammarException
- 设计模式(二十一)chain of responsibility
- 递归
- Tensorflow-2: 迁移学习程序编写
- 新开的博客
- sqrt函数实现-二叉搜索
- @Version
- MongoDB常用命令汇总之语句块操作。
- Python 中文排序