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

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
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>