Skip to content

Commit 4b0d5c3

Browse files
committed
Switch to the Apache Tomcat EL implementation by default
Previously we used org.glassfish:jakarta.el as our default EL implementation. Since adopting it we have learned that it can be significantly slower than Apache Tomcat's EL implementation in some scenarios. This commit switches to using org.apache.tomcat.embed:tomcat-embed-el by default instead of the Glassfish implementation. Closes gh-24744
1 parent e203399 commit 4b0d5c3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-starters/spring-boot-starter-jetty/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description = "Starter for using Jetty as the embedded servlet container. An alt
77
dependencies {
88
api("jakarta.servlet:jakarta.servlet-api")
99
api("jakarta.websocket:jakarta.websocket-api")
10+
api("org.apache.tomcat.embed:tomcat-embed-el")
1011
api("org.eclipse.jetty:jetty-servlets")
1112
api("org.eclipse.jetty:jetty-webapp") {
1213
exclude group: "javax.servlet", module: "javax.servlet-api"
@@ -21,5 +22,4 @@ dependencies {
2122
exclude group: "javax.websocket", module: "javax.websocket-client-api"
2223
exclude group: "org.eclipse.jetty", module: "jetty-jndi"
2324
}
24-
api("org.glassfish:jakarta.el")
2525
}

spring-boot-project/spring-boot-starters/spring-boot-starter-tomcat/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
api("org.apache.tomcat.embed:tomcat-embed-core") {
1010
exclude group: "org.apache.tomcat", module: "tomcat-annotations-api"
1111
}
12-
api("org.glassfish:jakarta.el")
12+
api("org.apache.tomcat.embed:tomcat-embed-el")
1313
api("org.apache.tomcat.embed:tomcat-embed-websocket") {
1414
exclude group: "org.apache.tomcat", module: "tomcat-annotations-api"
1515
}

spring-boot-project/spring-boot-starters/spring-boot-starter-undertow/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ dependencies {
1515
exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_4.0_spec"
1616
}
1717
api("jakarta.servlet:jakarta.servlet-api")
18-
api("org.glassfish:jakarta.el")
18+
api("org.apache.tomcat.embed:tomcat-embed-el")
1919
}

spring-boot-project/spring-boot-starters/spring-boot-starter-validation/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ description = "Starter for using Java Bean Validation with Hibernate Validator"
66

77
dependencies {
88
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
9-
api("org.glassfish:jakarta.el")
9+
api("org.apache.tomcat.embed:tomcat-embed-el")
1010
api("org.hibernate.validator:hibernate-validator")
1111
}

0 commit comments

Comments
 (0)