随笔三
一、引入druid所需的jar包
<!-- druid依赖log4j的日志jar包,但是SpringBoot默认使用的是slf4j+logback,所以这里导入log4j的jar包才行-->
<!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.20</version>
</dependency>
<!-- 由于druid有监控界面,所以该项目需要变为web项目-->
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.1.6.RELEASE</version>
</dependency>
<!-- https://mvnreposit