里面添加了排除方法,为何查看包结构中还是有,且启动时依然显示包冲突
从结构看,是spring-boot-starter引入进来的,确认一下排除的语句是不是加在spring-boot-starter的?
这样写的?
compile('org.springframework.boot:spring-boot-starter-web'){
exclude module: 'org.springframework.boot:spring-boot-starter-logging'
}
那试试这样呢?
configurations {
compile.exclude module: 'spring-boot-starter-logging'
}