java SSM项目搭建-- The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone

 

出现  错误

 The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone

 

找到jdbc 数据库连接字符串, 

加上?serverTimezone=UTC

?serverTimezone=UTC
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
        <property name="url" value="jdbc:mysql://localhost:3306/xxx?serverTimezone=UTC"/>
        <property name="username" value="root"/>
        <property name="password" value="123456"/>
    </bean>

 



posted on 2018-05-29 17:32  元点之始  阅读(364)  评论(0编辑  收藏  举报

导航