driver-class-name: com.mysql.cj.jdbc.Driver error [resolved]

If you configure the datasource of spring in the yml file,

Show  Cannot resolve class or package 'cj' 

First look at your pom package, has the mysql package been imported?

Guess you like

Origin blog.csdn.net/tomorrow9813/article/details/131564441