servicecomb log4j-slf4j-impl cannot be present with log4j-to-slf4j
servicecomb log4j-slf4j-impl cannot be present with log4j-to-slf4j
spring boot/cloud项目下查看是否引入的多余的log4j依赖,spring-boot本身自带log4j直接删除你引入的log4j或者排除spring boot的log4j
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>