异常:
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: #42000
这个时候很有可能是
数据表中的字段包含了数据库的关键字或者保留字导致(比如你把数据表字段设置了一个like,而like又是数据库特有的字),
解决方法:修改对应字段就可以了。