From 08988fd1825808a0951ce0e1fdfd304073037157 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 20 Nov 2014 17:55:15 -0800 Subject: [PATCH] Update docs about Jetty 9 and Tomcat 8 Fixes gh-1951 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 46da4e1fb0..01c23b39e9 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -612,15 +612,20 @@ own `UndertowEmbeddedServletContainerFactory`. [[howto-use-tomcat-8]] -=== Use Tomcat 8 -Tomcat 8 works with Spring Boot, but the default is to use Tomcat 7 (so we can support -Java 1.6 out of the box). You should only need to change the classpath to use -Tomcat 8 for it to work. For example, using the starter poms in Maven: +[[howto-use-tomcat-7]] +=== Use Tomcat 7 +Tomcat 7 works with Spring Boot, but the default is to use Tomcat 8. If you cannot use +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"] ---- - 8.0.8 + 7.0.56 + 3.0.1 ... @@ -632,15 +637,14 @@ Tomcat 8 for it to work. For example, using the starter poms in Maven: ---- -change the classpath to use Tomcat 8 for it to work. - [[howto-use-jetty-9]] -=== Use Jetty 9 -Jetty 9 works with Spring Boot, but the default is to use Jetty 8 (so we can support -Java 1.6 out of the box). You should only need to change the classpath to use Jetty 9 -for it to work. +[[howto-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 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 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"] ---- - 1.7 - 9.1.0.v20131115 - 3.1.0 + 8.1.15.v20140411 + 2.2.0.v201112011158 + 3.0.1