{“code”:204,“message”:"\r\n### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘userName’ in ‘where clause’\r\n### The error may exist in file [C:\Users\zz\IdeaProjects\springboot-chat\target\classes\mybatis\mapper\UserInfoMapper.xml]\r\n### The error may involve zz.chat.mapper.UserInfoMapper.query-Inline\r\n### The error occurred while setting parameters\r\n### SQL: select * from userInfo WHERE userName = ?\r\n### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘userName’ in ‘where clause’\n; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘userName’ in ‘where clause’"}
如果你也遇到这个异常 可能是你的配置文件中 连接的数据库名错了