通用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注解

 

阅读更多
换一批

没有更多推荐了,返回首页