把这里的 import org.junit.Test;换成 import org.junit.jupiter.api.Test; 同时加上 driver-class-name: com.mysql.jdbc.Driver