2020
11-29
11-29
springboot整合druid连接池的步骤
使用springboot默认的连接池导入springbootdata-jdbc依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-jdbc</artifactId></dependency>配置文件配置连接池spring:datasource:username:rootpassword:5201314url:jdbc:mysql:///jqmb?serverTimezone=UTCdriver-class-name:com.mysql.cj.jdbc.Driverspringboot默认的连接池@AutowiredData...
继续阅读 >