最后面访问根目录没有输出对象不存在,报了个错!求大神解答....

来源:2-4 Mybatis自动生成器使用方式

小马不识马

2018-12-29 23:05

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sat Dec 29 22:54:39 CST 2018

There was an unexpected error (type=Internal Server Error, status=500).

### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'third_' in 'field list' ### The error may exist in file [D:\tts9\ideaWorkspace\miaosha\target\classes\mapping\UserDOMapper.xml] ### The error may involve com.miaoshaproject.dao.UserDOMapper.selectByPrimaryKey-Inline ### The error occurred while setting parameters ### SQL: select id, name, gender, age, telphone, register_mode, third_-party_id from user_info where id = ? ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'third_' in 'field list' ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'third_' in 'field list'


写回答 关注

2回答

  • 谁拿了我的旺旺
    2018-12-31 10:27:21

    检查一下你的sql语句,还有你的实体类与表的字段,

    thirdPartyid

    这个字段看一下

  • 小马不识马
    2018-12-29 23:07:27

    IDEA里面app类27行,输入id为1的那行报错

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49065 学习 · 954 问题

查看课程

相似问题