Update docs about Jetty 9 and Tomcat 8

Fixes gh-1951
This commit is contained in:
Phillip Webb 2014-11-20 17:55:15 -08:00
parent 70a1438c6f
commit 08988fd182
1 changed files with 18 additions and 14 deletions

View File

@ -612,15 +612,20 @@ own `UndertowEmbeddedServletContainerFactory`.
[[howto-use-tomcat-8]] [[howto-use-tomcat-8]]
=== Use Tomcat 8 [[howto-use-tomcat-7]]
Tomcat 8 works with Spring Boot, but the default is to use Tomcat 7 (so we can support === Use Tomcat 7
Java 1.6 out of the box). You should only need to change the classpath to use Tomcat 7 works with Spring Boot, but the default is to use Tomcat 8. If you cannot use
Tomcat 8 for it to work. For example, using the starter poms in Maven: Tomcat 8 (for example, because you are using Java 1.6) you will need to change your
classpath to reference Tomcat 7 and Servlet API 3.0.
If you are using the starter poms and parent you can just 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"]
---- ----
<properties> <properties>
<tomcat.version>8.0.8</tomcat.version> <tomcat.version>7.0.56</tomcat.version>
<servlet-api.version>3.0.1</servlet-api.version>
</properties> </properties>
<dependencies> <dependencies>
... ...
@ -632,15 +637,14 @@ Tomcat 8 for it to work. For example, using the starter poms in Maven:
</dependencies> </dependencies>
---- ----
change the classpath to use Tomcat 8 for it to work.
[[howto-use-jetty-9]] [[howto-use-jetty-9]]
=== Use Jetty 9 [[howto-use-jetty-8]]
Jetty 9 works with Spring Boot, but the default is to use Jetty 8 (so we can support === Use Jetty 8
Java 1.6 out of the box). You should only need to change the classpath to use Jetty 9 Jetty 8 works with Spring Boot, but the default is to use Jetty 9. If you cannot use
for it to work. 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.
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 and
change the version properties, e.g. for a simple webapp or service: change the version properties, e.g. for a simple webapp or service:
@ -648,9 +652,9 @@ 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"]
---- ----
<properties> <properties>
<java.version>1.7</java.version> <jetty.version>8.1.15.v20140411</jetty.version>
<jetty.version>9.1.0.v20131115</jetty.version> <jetty-jsp.version>2.2.0.v201112011158</jetty-jsp.version>
<servlet-api.version>3.1.0</servlet-api.version> <servlet-api.version>3.0.1</servlet-api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>