Check out example codes for "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.". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com