看来Springboot会自动配置为将Logback与Tomcat一起使用。我想禁用此功能,并使用我在类路径中提供的功能。
下面的错误信息。
LoggerFactory不是Logback
LoggerContext,但Logback在类路径上。删除Logback或竞争实现(类org.slf4j.impl.SimpleLoggerFactory)[org.slf4j.impl.SimpleLoggerFactory]类的对象必须是ch.qos.logback.classic.LoggerContext类的实例。
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-boot-starter-parent
org.springframework.boot
1.0.1.RELEASE
com.fe
cloudapp
1.0.0
Withinet-PaaS
Develop your web applications in on our infrastructure and we will worry about administration and scalability of your app.
1.7
16.0.1
UTF-8
UTF-8
com.sun.jersey
jersey-client
1.8
com.withinet.cloudapp
slave
1.0.0
org.apache.wicket
wicket-core
6.15.0
org.hibernate
hibernate-core
4.3.0.Final
com.google.code.gson
gson
2.2.4
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-web
javax.validation
validation-api
1.1.0.Final
org.hibernate
hibernate-validator-annotation-processor
4.1.0.Final
com.google.guava
guava
${guava.version}
javax.inject
javax.inject
1
org.apache.lucene
lucene-queryparser
4.8.0
org.springframework.boot
spring-boot-starter-tomcat
provided
org.springframework.boot
spring-boot-maven-plugin
com.withinet.cloud.Application
JAR
repackage