当前位置:   article > 正文

新手问题mysql库连接名称错误org.mybatis.spring.MyBatisSystemException:ERROR com.zaxxer.hikari.pool.HikariPool_error com.zaxxer.hikari.pool.hikaripool: 594 - dat

error com.zaxxer.hikari.pool.hikaripool: 594 - datebookhikaricp - exception

错误描述
ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
java.sql.SQLSyntaxErrorException: Unknown database 'library'
错误描述
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLSyntaxErrorException: Unknown database 'library'
### The error may exist in cn/itcast/hotel/mapper/HotelMapper.java (best guess)
### The error may involve cn.itcast.hotel.mapper.HotelMapper.selectById
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLSyntaxErrorException: Unknown database 'library'
数据库名字不对改一下就好了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/159697
推荐阅读
相关标签
  

闽ICP备14008679号