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
相關文章
相關標籤/搜索