或
1.导入maven坐标 com.alibaba druid-spring-boot-starter 1.2.19
2.在application.properties中配置连接池 spring: datasource: druid: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/test username: root password: 123456
总结:
京公网安备 11010502049817号