70.18.2 通过Gradle使用Jetty8

你可以设置jetty.version属性并排除相关的WebSocket依赖,比如对于一个简单的webapp或service:

ext[&aposjetty.version&apos] = &apos8.1.15.v20140411&apos
dependencies {
    compile (&aposorg.springframework.boot:spring-boot-starter-web&apos) {
        exclude group: &aposorg.springframework.boot&apos, module: &aposspring-boot-starter-tomcat&apos
    }
    compile (&aposorg.springframework.boot:spring-boot-starter-jetty&apos) {
        exclude group: &aposorg.eclipse.jetty.websocket&apos
    }
}