If change MySQL JDBC driver from 5.1.38
to 6.0.2
I get the following exception
java.sql.SQLNonTransientConnectionException: CLIENT_PLUG
It may be due to mysql version is too old so you need to do 3 changes in that case: in application.properties do first 2 changes:
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
Do changes in pom.xml file in dependency of mysql-connector-java replace scope tag to the version tag and in version write your mysql version like 5.1