org.springframework.jdbc.BadSqlGrammarException:

遇到的问题

org.springframework.jdbc.BadSqlGrammarException: 
### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: 
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 'condition ) 
VALUES( '1','ff','file:///','123456','四川',12,'王','1970-' at line 1

数据库的字段有关键字:condition
改成了conditions,解决了问题

posted @ 2018-01-12 19:30  crr121  阅读(1203)  评论(0编辑  收藏  举报