通用mapper查询报错

org.springframework.jdbc.BadSqlGrammarException:
### Error querying database.  Cause: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'cat.man' doesn't exist
### The error may exist in com/cat/dao/ManMapper.java (best guess)
### The error may involve com.cat.dao.ManMapper.select-Inline
### The error occurred while setting parameters
### SQL: SELECT id,name,sex,borntime,gender,phone,mail,logname,password,buildtime,address,yn  FROM man  WHERE  logname = ? AND password = ?
### Cause: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'cat.man' doesn't exist
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'cat.man' doesn't exist

解决方法:添加Entity,Table注解

猜你喜欢

转载自blog.csdn.net/qq_40050716/article/details/81592902