小马不识马
2018-12-29 23:05
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'
检查一下你的sql语句,还有你的实体类与表的字段,
thirdPartyid
这个字段看一下
IDEA里面app类27行,输入id为1的那行报错
SpringBoot构建电商基础秒杀项目
49065 学习 · 954 问题
相似问题