ssm framework database connection failure java.sql.SQLException: The server time zone value '??? & # 250; & # 177; & # 234; & # 215; ?? & # 177; ??' is unrecognized or represents more

1, error screenshots

 

 

 2, modify operation

I was connected to the database of the frame, if in the class & amp; & replaced

Modify the code before

<property value="com.mysql.jdbc.Driver" name="driverClass"/>

<property value="jdbc:mysql://127.0.0.1:3306/new1?useUnicode=true&characterEncoding=utf-8" name="jdbcUrl"/>

Modified the code

<property name="driverClass" value="com.mysql.cj.jdbc.Driver"></property>
<property name="jdbcUrl"
value="jdbc:mysql://127.0.0.1:3306/new1?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL = false&amp;serverTimezone = GMT"></property>

3, the effect

 

 

 

Guess you like

Origin www.cnblogs.com/wangxue1314/p/11921018.html