工作生活

19.7.4

2019-07-08  本文已影响0人  ifreeman

Intellij热部署插件JRebel

https://blog.csdn.net/xingbaozhen1210/article/details/81093041

https://blog.csdn.net/weixin_42831477/article/details/82229436

报错:

java.sql.SQLSyntaxErrorException: Table 'test.hibernate_sequence' doesn't exist

解决:https://blog.csdn.net/thulium_kyg/article/details/84725001

这个是主键自增长策略问题。

@GeneratedValue:主键的产生策略,通过strategy属性指定。 

@GeneratedValue(strategy = GenerationType.IDENTITY)

报错:

MySQL连接数据库报时区错误:java.sql.SQLException: The server time zone value

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.

解决:

为URL添加参数serverTimezone=UTC即可

上一篇下一篇

猜你喜欢

热点阅读