Unable to connect to MySQL database from SpringBoot

前端 未结 1 997
死守一世寂寞
死守一世寂寞 2021-01-26 02:54

I am trying to connect to the mySQL database from my Spring Boot application. However it is showing error when I am trying to run it.

How can I resolve this?

Th

相关标签:
1条回答
  • 2021-01-26 03:25

    It can be related to bad @annotations. Post your entity class to re-check. Anyhow add the below line in your property file:

    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    
    0 讨论(0)
提交回复
热议问题