|  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-starter-web</artifactId> | 
|---|
|  |  |  | <exclusions> | 
|---|
|  |  |  | <!-- 引入log4j2日志时需去掉默认的logback --> | 
|---|
|  |  |  | <exclusion> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-starter-logging</artifactId> | 
|---|
|  |  |  | </exclusion> | 
|---|
|  |  |  | </exclusions> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.springframework.boot</groupId> | 
|---|
|  |  |  | <artifactId>spring-boot-starter-test</artifactId> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <!--log4j-bom是个pom,没有具体的jar包, springboot需要它 --> | 
|---|
|  |  |  | <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-bom --> | 
|---|
|  |  |  | <dependency> | 
|---|
|  |  |  | <groupId>org.apache.logging.log4j</groupId> | 
|---|
|  |  |  | <artifactId>log4j-bom</artifactId> | 
|---|
|  |  |  | <version>${log4j-bom}</version> | 
|---|
|  |  |  | <!-- 这个没有jar包,只有pom文件,所以要加上下面设置 --> | 
|---|
|  |  |  | <type>pom</type> | 
|---|
|  |  |  | </dependency> | 
|---|
|  |  |  | <!-- lombok --> | 
|---|
|  |  |  | <dependency> | 
|---|