springboot使用过程中遇到的问题

一、工具Intellij IDEA

二、基本问题

1.数据库语句

Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.cj.jdbc.Driver 

解决方法:检查application.prooerties文件中的数据库语句:spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 是否后面有空格(不能有空格)

猜你喜欢

转载自www.cnblogs.com/luv-letter/p/10964274.html