configurations {
all*.exclude group:'javax.servlet'
}
添加这一句 去除gradle dependencies里面的servlet-api.jar
refresh gradle dependencies.
之后,右击项目名-tomcat project –>add tomcat libreries to project build path.
解决问题
configurations {
all*.exclude group:'javax.servlet'
}
添加这一句 去除gradle dependencies里面的servlet-api.jar
refresh gradle dependencies.
之后,右击项目名-tomcat project –>add tomcat libreries to project build path.
解决问题