Unable to figure out what is causing the issue.
My application.properties file
spring.datasource.url = "jdbc:mysql://localhost:3306/Medical_Tracking?useSSL=false"
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
Quick help is appreciated
your config spring.datasource.url should not use "", use spring.datasource.url = jdbc:mysql://localhost:3306/Medical_Tracking?useSSL=false instead
Try following change in applications.properties file:
Replace
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
with
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.