Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, https://localhost:3306/dcbapp

Issue

I am following a tutorial for spring boot I did everything exactly like the tutorial and I’m getting the following exception

the exception

java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, https://localhost:3306/dcbapp

My application.properties file

spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=https://localhost:3306/dcbapp
spring.datasource.username=root
spring.datasource.password=1234
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.show-sql=true

the schema dcbapp exists in mysql

Solution

This https://localhost:3306/dcbapp is wrong.

You have to use the correct one.

jdbc:mysql://localhost:3306/dcbapp

Answered By – Alien

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published