Cannot load driver class: com.mysql.jdbc.Driver 異常解決辦法

今天啓動springboot應用時,報以下異常: 檢查了一遍,我的包沒有引錯啊。 後來才發現是配置文件的問題 在spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver後面多了幾個空格,真是細節啊
相關文章
相關標籤/搜索