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
pull/24849/head
Andy Wilkinson 4 years ago
parent e2033992c7
commit 4b0d5c31de

@ -7,6 +7,7 @@ description = "Starter for using Jetty as the embedded servlet container. An alt
dependencies {
api("jakarta.servlet:jakarta.servlet-api")
api("jakarta.websocket:jakarta.websocket-api")
api("org.apache.tomcat.embed:tomcat-embed-el")
api("org.eclipse.jetty:jetty-servlets")
api("org.eclipse.jetty:jetty-webapp") {
exclude group: "javax.servlet", module: "javax.servlet-api"
@ -21,5 +22,4 @@ dependencies {
exclude group: "javax.websocket", module: "javax.websocket-client-api"
exclude group: "org.eclipse.jetty", module: "jetty-jndi"
}
api("org.glassfish:jakarta.el")
}

@ -9,7 +9,7 @@ dependencies {
api("org.apache.tomcat.embed:tomcat-embed-core") {
exclude group: "org.apache.tomcat", module: "tomcat-annotations-api"
}
api("org.glassfish:jakarta.el")
api("org.apache.tomcat.embed:tomcat-embed-el")
api("org.apache.tomcat.embed:tomcat-embed-websocket") {
exclude group: "org.apache.tomcat", module: "tomcat-annotations-api"
}

@ -15,5 +15,5 @@ dependencies {
exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_4.0_spec"
}
api("jakarta.servlet:jakarta.servlet-api")
api("org.glassfish:jakarta.el")
api("org.apache.tomcat.embed:tomcat-embed-el")
}

@ -6,6 +6,6 @@ description = "Starter for using Java Bean Validation with Hibernate Validator"
dependencies {
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
api("org.glassfish:jakarta.el")
api("org.apache.tomcat.embed:tomcat-embed-el")
api("org.hibernate.validator:hibernate-validator")
}

Loading…
Cancel
Save