Remove support for Jetty 9.3 and earlier
Closes gh-7985
This commit is contained in:
@@ -54,18 +54,10 @@ The following embedded servlet containers are supported out of the box:
|
||||
|3.1
|
||||
|Java 7+
|
||||
|
||||
|Jetty 9.3
|
||||
|Jetty 9.4
|
||||
|3.1
|
||||
|Java 8+
|
||||
|
||||
|Jetty 9.2
|
||||
|3.1
|
||||
|Java 7+
|
||||
|
||||
|Jetty 8
|
||||
|3.0
|
||||
|Java 6+
|
||||
|
||||
|Undertow 1.3
|
||||
|3.1
|
||||
|Java 7+
|
||||
|
||||
@@ -930,132 +930,6 @@ add a listener to the `Builder`:
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-9.2]]
|
||||
=== Use Jetty 9.2
|
||||
Jetty 9.2 works with Spring Boot, but the default is to use Jetty 9.3. If you cannot use
|
||||
Jetty 9.3 (for example, because you are using Java 7) you will need to change your
|
||||
classpath to reference Jetty 9.2.
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-9.2-maven]]
|
||||
==== Use Jetty 9.2 with Maven
|
||||
|
||||
If you are using the starters and parent you can just add the Jetty starter and override
|
||||
the `jetty.version` property:
|
||||
|
||||
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
<properties>
|
||||
<jetty.version>9.2.17.v20160517</jetty.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jetty</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-9.2-gradle]]
|
||||
==== Use Jetty 9.2 with Gradle
|
||||
|
||||
You can set the `jetty.version` property. For example, for a simple webapp or service:
|
||||
|
||||
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
ext['jetty.version'] = '9.2.17.v20160517'
|
||||
dependencies {
|
||||
compile ('org.springframework.boot:spring-boot-starter-web') {
|
||||
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
|
||||
}
|
||||
compile ('org.springframework.boot:spring-boot-starter-jetty')
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-8]]
|
||||
=== Use Jetty 8
|
||||
Jetty 8 works with Spring Boot, but the default is to use Jetty 9.3. If you cannot use
|
||||
Jetty 9.3 (for example, because you are using Java 1.6) you will need to change your
|
||||
classpath to reference Jetty 8. You will also need to exclude Jetty's WebSocket-related
|
||||
dependencies.
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-8-maven]]
|
||||
==== Use Jetty 8 with Maven
|
||||
|
||||
If you are using the starters and parent you can just add the Jetty starter with
|
||||
the required WebSocket exclusion and change the version properties, e.g. for a simple
|
||||
webapp or service:
|
||||
|
||||
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
<properties>
|
||||
<jetty.version>8.1.15.v20140411</jetty.version>
|
||||
<jetty-jsp.version>2.2.0.v201112011158</jetty-jsp.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jetty</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>*</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[howto-use-jetty-8-gradle]]
|
||||
==== Use Jetty 8 with Gradle
|
||||
|
||||
You can set the `jetty.version` property and exclude the WebSocket dependency, e.g. for a
|
||||
simple webapp or service:
|
||||
|
||||
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
ext['jetty.version'] = '8.1.15.v20140411'
|
||||
dependencies {
|
||||
compile ('org.springframework.boot:spring-boot-starter-web') {
|
||||
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
|
||||
}
|
||||
compile ('org.springframework.boot:spring-boot-starter-jetty') {
|
||||
exclude group: 'org.eclipse.jetty.websocket'
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[howto-create-websocket-endpoints-using-serverendpoint]]
|
||||
=== Create WebSocket endpoints using @ServerEndpoint
|
||||
If you want to use `@ServerEndpoint` in a Spring Boot application that used an embedded
|
||||
|
||||
Reference in New Issue
Block a user