70.18.2 通过Gradle使用Jetty8

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

  1. ext['jetty.version'] = '8.1.15.v20140411'
  2. dependencies {
  3. compile ('org.springframework.boot:spring-boot-starter-web') {
  4. exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
  5. }
  6. compile ('org.springframework.boot:spring-boot-starter-jetty') {
  7. exclude group: 'org.eclipse.jetty.websocket'
  8. }
  9. }