From 630d2ddefe678e4cef8553c01b3b553683eec3a1 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 14 Mar 2014 16:13:01 -0700 Subject: [PATCH] Port Add Maven example for Tomcat 8 Port Add Maven example for Tomcat 8 from markdown to asciidoc. (originally from commit 15372cb73786d9a82abbd441b0c9e04a68967829) --- spring-boot-docs/src/main/asciidoc/howto.adoc | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index e693d1b049..17b7728db6 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -477,7 +477,25 @@ of ways. Or the nuclear option is to add your own `JettyEmbeddedServletContainer [[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 +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: + +[source,xml,indent=0,subs="verbatim,quotes,attributes"] +---- + + 8.0.3 + + + ... + + org.springframework.boot + spring-boot-starter-web + + ... + +---- + +change the classpath to use Tomcat 8 for it to work. The {github-code}/spring-boot-samples/spring-boot-sample-websocket/pom.xml[websocket sample] shows you how to do that in Maven.