springboot配置数据库连接池druid
1.第一步首先创造一个springboot项目
2.导入相关的druid所需pom依赖
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.10</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
myql版本
3.配置application.yml
server:
port: 81
servlet:
context