#BadSqlGrammarException

org.springframework.jdbc.BadSqlGrammarException

这个错误在MyBatis中实际上很常见,就是SQL写错了。通常通过先在MySQL命令行执行一遍sql看有没有错误,如果有就更改,没有就基本上可以用了。注意,我说的基本上可用并不代代表完全可用,比如今天我就遇到一个非常恶心的问题。sql代码如下(这句sql经过在mysql命令行中测试,能够获取数据,完全没有问题):<...

低级sql语法错误: BadSqlGrammarException

atorg.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760)atorg.springframework.boot.SpringApplication.afterRefresh(SpringApplication....