HTTP状态 500 - 内部服务器错误
类型 异常报告
消息 Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
描述 服务器遇到一个意外的情况,阻止它完成请求。
例外情况
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 ### The error may exist in file [E:\Program_IDEA\heima_code\SSMAllNew\target\SSMAllNew-1.0-SNAPSHOT\WEB-INF\classes\com\heima\dao\ProductDao.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: select * from product; ### Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符截取了一部分
在使用SSM整合的时候出错,我用的是Oracle数据库。一开始我以为是我的配置文件有问题,仔细检查也没有错误。
错误原因
此处的select语句不能加冒号 " ; "
删除后就正常了