连接 mysql 报这个错误:nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database! ### The error may exist in file [D:\solutions.java\springDemo\target\springDemo\WEB-INF\classes\mapper\UserDaoMapper.xml] ### The error may involve dao.UserDao.selectByUsername ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
怎么回事啊?
原来是时区没指定。谢谢啦。
数据库连接看一下
我是.net,现在要转java还希望多多关照啊。
mysql 是 8.0