***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.datasource.db1' to javax.sql.DataSource:
Property: spring.datasource.db1.driver-class-name
Value: com.mysql.cj.jdbc.Driver
Origin: class path resource [application-dev.yml]:35:26
Reason: Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
Action:
Update your application's configuration
Disconnected from the target VM, address: '127.0.0.1:63346', transport: 'socket'
Process finished with exit code 1
1.yml配置文件格式问题,缺少空格
2.数据库驱动依赖包缺少,或者版本不对
3.上面都没问题,那就操作pom.xml文件,将mysql驱动依赖删除再添加,maven重新加载
,启动可能提示找不到某类错误,那就idea清除项目缓存,重新启动项目