Document WebSocket exclusions that are required when using Jetty 8

Closes gh-1969
pull/1994/head
Andy Wilkinson 10 years ago
parent 27569f5845
commit efe50ebcad

@ -639,15 +639,16 @@ e.g. for a simple webapp or service:
[[howto-use-jetty-9]]
[[howto-use-jetty-8]] [[howto-use-jetty-8]]
=== Use Jetty 8 === Use Jetty 8
Jetty 8 works with Spring Boot, but the default is to use Jetty 9. If you cannot use Jetty 8 works with Spring Boot, but the default is to use Jetty 9. If you cannot use
Jetty 9 (for example, because you are using Java 1.6) you will need to change your Jetty 9 (for example, because you are using Java 1.6) you will need to change your
classpath to reference Jetty 8 and Servlet API 3.0. classpath to reference Jetty 8 and Servlet API 3.0. You will also need to exclude
Jetty's WebSocket-related dependencies.
If you are using the starter poms and parent you can just add the Jetty starter and If you are using the starter poms and parent you can just add the Jetty starter with
change the version properties, e.g. for a simple webapp or service: 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"] [source,xml,indent=0,subs="verbatim,quotes,attributes"]
---- ----
@ -670,6 +671,12 @@ change the version properties, e.g. for a simple webapp or service:
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId> <artifactId>spring-boot-starter-jetty</artifactId>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
---- ----

Loading…
Cancel
Save