Categories
java mysql spring-boot

Setup spring-boot project with mysql database using mysql driver

MySQL connector is a part of maven dependencies and all the database properties like url,username,password are mentioned in the application.properties.

Getting a RuntimeException, like:

Driver com.mysql.jdbc.Driver claims to not accept jdbcUrl,
jdbc/mysql://10.53.235.141:3306/hms.

Please help with the solution.

application.properties
spring.datasource.url=jdbc/mysql://10.53.235.141:3306/hms
spring.datasource.username="root"
spring.datasource.password="password"
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.jpa.database = MYSQL
[![Project setup structure][1]][1]

Exception in the console