我想将包部署到tomcat因此尝试扩展它SpringBootServletInitializer并发生以下错误但在没有任何错误的正常部署中SpringBootServletInitializer似乎没有错误。
我究竟做错了什么?
我的build.gradle文件看起来像这样
plugins {
id 'java'
id 'war'
}
group 'com.nithin.ms'
version '0.5.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
providedRuntime
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.8'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.0.4.RELEASE'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat:2.0.4.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
萧十郎
相关分类