当我尝试运行Spring Boot测试时,出现错误:
java.lang.ClassNotFoundException: org.apache.tomcat.util.http.mapper.Mapper
这似乎是由于gradle的一些冲突,但我无法弄清楚导致它的原因。
依赖项:
http://www.heypasteit.com/clip/0IIVEX。 (这里粘贴的时间太长了)
gradle:
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repo.hortonworks.com/content/groups/public" }
}
dependencies {
compile(group: 'com.testcompany', name: 'util-lib', version: "1.0.1", classifier: 'lite')
//Testing
testCompile(group: 'com.testcompany', name: 'util-testing', version: "1.0.1", classifier: 'lite')
testCompile("junit:junit")
testCompile "org.hamcrest:hamcrest-all:1.3"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "org.mockito:mockito-core:${mockitoVersion}"
}