异常错误:

###Error querying database. Cause: java.sql.SQLSyntaxErrorException: Table ‘mybatis.users’ doesn’t exist
###The error may exist in file [/Users/mk/Desktop/java/www/springboot/target/classes/mybatis/mapper/UserMapper.xml]
###The error may involve defaultParameterMap
###The error occurred while setting parameters
###SQL: select * from users
###Cause: java.sql.SQLSyntaxErrorException: Table ‘mybatis.users’ doesn’t exist
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table ‘mybatis.users’ doesn’t exist] with root cause

错误原因:

如下图,未指定对应的数据库
java常见错误:Cause: java.sql.SQLSyntaxErrorException: Table ‘mybatis.users‘ doesn‘t exist

解决方案:

改成对应的数据库即可

相关文章:

  • 2021-08-28
  • 2021-11-22
  • 2021-04-24
  • 2021-06-03
  • 2022-12-23
  • 2021-05-13
  • 2018-10-30
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2021-10-21
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案