在写数据库相关项目时,出现The server time zone value '�й���׼ʱ��' is unrecogni异常。

解决办法:  

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/student?serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=a19770606
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true

猜你喜欢

转载自www.cnblogs.com/cnshuji/p/12142730.html
今日推荐