问答详情
源自:2-4 Mybatis自动生成器使用方式

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

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'


提问者:小马不识马 2018-12-29 23:05

个回答

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

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

    thirdPartyid

    这个字段看一下

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

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