Java JPA和服务器时区错误

Java JPA和服务器时区错误,java,mysql,jpa,jdbc,Java,Mysql,Jpa,Jdbc,无论我如何更改phpmyadmin或persistence.xml中的connectionstring中的时区,都会出现以下错误: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value 'Romance Summer Time' is unrecognized or represents more than one time zone. You must

无论我如何更改phpmyadmin或persistence.xml中的connectionstring中的时区,都会出现以下错误:

 com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: 
 The server time zone value 'Romance Summer Time' 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.
这是我的persistence.xml:

<persistence-unit name="booking" transaction-type="RESOURCE_LOCAL">
        <properties>
            <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
            <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/_boekingdb_/>
            <property name="javax.persistence.jdbc.user" value="root"/>
            <property name="javax.persistence.jdbc.password" value=""/>
            <property name="hibernate.show_sql" value="true"/>
        </properties>
    </persistence-unit>
到jdbc.url连接字符串不做任何操作

我甚至不知道这个“浪漫夏日”是从哪里来的

任何帮助都将不胜感激

只需添加

default-time-zone=+00:00

到my.ini(在xamp\mysql\bin中)修复了所有问题…

添加了
serverTimezone=UTC


default-time-zone=+00:00