解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

1. 报错:

### 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中没有对应的映射字段来匹配,查到的结果无法全部填充到对象属性才报错的。

转自:http://www.voidcn.com/article/p-tafwklah-bqb.html

原文地址:https://www.cnblogs.com/yixiu868/p/13254364.html