mapper映射错误
来源:互联网 发布:k软件音画制作 编辑:程序博客网 时间:2024/06/01 09:37
HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
type Exception report
message Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jk.contrat_product_c' doesn't exist### The error may exist in file [E:\张\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\webapps\jk\WEB-INF\classes\org\mapper\ContractProduct.xml]### The error may involve org.jk.mapper.ContractProductMapper.find-Inline### The error occurred while setting parameters### SQL: select * from contrat_product_c where 1=1### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jk.contrat_product_c' doesn't exist; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jk.contrat_product_c' doesn't existorg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)javax.servlet.http.HttpServlet.service(HttpServlet.java:624)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)javax.servlet.http.HttpServlet.service(HttpServlet.java:731)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
这个错误的原因是我在mapper中没有设置返回结果集!!!!
0 0
- mapper映射错误
- Mapper映射
- 解决淘淘商城找不到mapper映射文件的错误
- 500错误,解决mapper映射文件不拷贝的问题
- Mapper.xml映射文件
- Mapper.xml映射文件
- Mapper映射文件配置
- 加载Mapper映射文件
- Mybatis中Mapper映射
- Mybatis(Mapper映射开发)
- Mapper映射注册
- SQL映射文件mapper.xml
- 3、XML映射文件Mapper
- Mybatis-Mapper.xml输入输出映射
- Mybatis-Mapper.xml输入输出映射
- MyBatis03--Mapper XML映射文件
- Mapper映射器的使用
- Mapper映射文件中的#{}与${}
- HDU 2177 取(2堆)石子游戏
- 字符集
- 机器学习-周志华-个人练习10.1
- 个人学习(三)
- css3布局的若干笔记总结
- mapper映射错误
- Android monkey和monkeyrunner测试
- Spring MVC整合Velocity
- 时间轴的实现(简单到爆炸)
- 个人学习(四)
- PS制作羊皮纸效果
- flash和php的url编码传换
- 原始数据类型和引用数据类型的区别
- windows下看端口占用