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

Time:08-29

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

CodePudding user response:

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

You have to use the correct one.

jdbc:mysql://localhost:3306/dcbapp
  • Related