com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'XXX' doesn't exist

org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atcrowdfunding.t_usernum' doesn't exist
### The error may exist in URL [jar:file:/E:/Yang/Desktop/select(1)/atcrowdfunding/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/UsernumMapper.xml]
### The error may involve com.hahah.atcrowdfunding.manager.dao.UsernumMapper.selectUsernumByDate-Inline
### The error occurred while setting parameters
### SQL: select id, usernum, time     from t_usernum     where time = ?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atcrowdfunding.t_usernum' doesn't exist
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atcrowdfunding.t_usernum' doesn't exist

异常的原因有很多,其他博客有说明,主要是说表名的大小写可能有问题

我这里再提供一个错误的原因,jdbc.config配置文件是从其他项目拷贝过来的,忘了改数据库了o(╥﹏╥)o脑子瓦特了,

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值