Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Comunicacao com o banco

Estou tomando as exceptions abaixo, usando o mysql server 8.0! Poderiam me ajudar??

GRAVE: Servlet.service() for servlet [dispatcher] in context with path [/casadocodigo] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection] with root cause 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.

1 resposta
solução!
spring.datasource.url=jdbc:mysql://localhost/nome do banco?
createDatabaseIfNotExist=true&useTimezone=true&serverTimezone=Ameri
ca/Sao_Paulo

Tenta isso ! coloca no arquivo de configuração do spring !!!

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