解决bad.SQL.grammar.[];nested.exception.is.java.sql.SQLSyntaxErrorException:ORA-00911:
(2020-07-14 07:52:55)
标签:
it教育文化 |
分类: Spring/cloud |
解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
### Cause: java.sql.SQLSyntaxErrorException: ORA-00911:
无效字符
; bad SQL grammar []; nested exception is
java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
2.出错 原因:
1)
sql在数据库执行都是OK的。
真正的原因是: 在mybatis 中sql结尾处多了一个" ; " 去掉就可以了。
2) mybatis
,我查出的数据在resultMap中没有对应的映射字段来匹配,查到的结果无法全部填充到对象属性才报错的。
即:
中FORMAT
对应的 忘了写了

加载中…