com.mysql.cj.exceptions.InvalidConnectionAttributeException more than one time zone. You must configure either the server or JD value if you want to utilize time zone support. 1

com.mysql.cj.exceptions.InvalidConnectionAttributeException more than one time zone. You must configure either the server or JD value if you want to utilize time zone support.

spring.datasource.url=jdbc:mysql://localhost/db_name?useTimezone=true&serverTimezone=UTC

Here is what the above code is Doing:
1. We are creating a new instance of the SpringApplication class.
2. We are setting the application name to “Spring Boot Application”.
3. We are setting the application properties.
4. We are running the application.

Similar Posts