// springboot-log4j (勿删) 去除springboot自带的logback,避免了与log4j的冲突(LoggerFactory is not a Logback LoggerContext but Logback is on the classpath)
compile("org.springframework.boot:spring-boot-starter-log4j"){
// exclude module: "spring-boot-starter-logging"
// exclude module: "logback-classic"
// exclude module: "ch.qos.logback"
}