现在,gradle是
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.boot:spring-boot-starter-jersey'
compile 'org.springframework.boot:spring-boot-starter-web'
compile('org.springframework.boot:spring-boot-starter-jetty')
}但是依赖关系仍然存在。


发布于 2018-10-29 20:39:41
请根据reference在您的gradle中更正排除Tomcat的引号
configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
}然后清理并构建项目。
然后确认Tomcat依赖项不存在。
https://stackoverflow.com/questions/53043501
复制相似问题