Я думаю, что какой-то модуль в Spring-boot-starter-security конфликтует с log4j, но я не знаю, какой именно.
Моя зависимость от Gradle следующая:
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-security"){
exclude module: "spring-boot-starter-logging"
}
compile "org.apache.logging.log4j:log4j-api"
compile "org.apache.logging.log4j:log4j-core"
compile "org.apache.logging.log4j:log4j-slf4j-impl"
compile('org.apache.poi:poi:3.10.1')
compile('org.apache.poi:poi-ooxml:3.10.1')
testCompile("junit:junit")
Подробнее здесь: https://stackoverflow.com/questions/307 ... -classpath