Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 20efa61

Browse files
committed
Improve tomcat-embed-programmatic documentation
1 parent f917376 commit 20efa61

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

spring-graalvm-native-docs/src/main/asciidoc/support.adoc

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,31 @@ The following starters are supported, the group ID is `org.springframework.boot`
3636
* `spring-boot-starter-validation`
3737
* `spring-boot-starter-webflux`: only Netty is supported for now.
3838
** `--enable-https` flag is required for HTTPS support.
39-
* `spring-boot-starter-web`: only Tomcat is supported for now. A lightweight version of Tomcat is available via the `org.apache.tomcat.experimental:tomcat-embed-programmatic` dependency.
39+
* `spring-boot-starter-web`:
40+
** Only Tomcat is supported for now.
41+
** `tomcat-embed-programmatic` dependency can be used instead of `tomcat-embed-core` and `tomcat-embed-websocket` ones for optimized footprint. If you are using `spring-boot-starter-web` and Maven, you should use the following `pom.xml` configuration:
42+
```
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-web</artifactId>
46+
<exclusions>
47+
<exclusion>
48+
<groupId>org.apache.tomcat.embed</groupId>
49+
<artifactId>tomcat-embed-core</artifactId>
50+
</exclusion>
51+
<exclusion>
52+
<groupId>org.apache.tomcat.embed</groupId>
53+
<artifactId>tomcat-embed-websocket</artifactId>
54+
</exclusion>
55+
</exclusions>
56+
</dependency>
57+
58+
<dependency>
59+
<groupId>org.apache.tomcat.experimental</groupId>
60+
<artifactId>tomcat-embed-programmatic</artifactId>
61+
<version>${tomcat.version}</version>
62+
</dependency>
63+
```
4064
** `--enable-https` flag is required for HTTPS support.
4165
* `com.wavefront:wavefront-spring-boot-starter`
4266
** `--enable-https` flag is required.

0 commit comments

Comments
 (0)