1
resposta

TimeZone

to recebendo o erro

Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 
The server time zone value 'Hora oficial do Brasil' 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.

como faço pra configurar a timezone pelo WildFly? tentei colocar useTimezone=true&serverTimezone=UTC na url de conexão, mas não foi

1 resposta

Lucas Bom Dia. Em seu arquivo satandalone.xml você procura a linha que listei logo abaixo e faz a seguinte alteração na "connection-url"

 <connection-url>jdbc:mysql://localhost:3306/agendamentoemaildb?serverTimezone=UTC</connection-url>

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software