问题
ERROR aba.druid.pool.DruidDataSource - create connection error 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.
解决方法
<!--配置连接池-->
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
<property name="driverClassName" value="com.mysql.cj.jdbc.Driver"/>
<property name="url" value="jdbc:mysql:///maven?serverTimezone=UTC"/> //添加?serverTimezone=UTC
<property name="username" value="root"/>
<property name="password" value="root"/>
</bean>
温馨小提示:UTC是统一标准世界时间