org.apache.ibatis.exceptions.PersistenceException

完整error:

### Error querying database.
Cause: java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc time zone value if you want to utilize time zone support.
### The error may exist in UserMapper.xml
### The error may involve cn.alpaca.mapper.UserMapper.selectUser
### The error occurred while executing a query
### Cause: java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

解决:
Mybatis配置错误
<property name=“url”的最后,添加一段:&serverTimezone=UTC
Mybatis配置错误

注意图片,&amp不能显示出现,还有分号;(EN)

相关文章:

  • 2021-10-24
  • 2021-07-26
  • 2022-12-23
  • 2022-01-27
  • 2022-01-10
  • 2021-06-28
  • 2021-07-03
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-01-19
  • 2021-07-29
  • 2021-10-04
相关资源
相似解决方案