springboot(四):springboot使用Druid数据库连接池

1.创建项目的方式和上一节相似 将上一节的代码复制过来 测试一下: 2.配置Druid 配置好数据库连接池的参数 spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test?useSSL=false&serverTimezone=UTC
相关文章
相关标签/搜索