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
This commit is contained in:
Andy Wilkinson 2021-01-15 09:30:54 +00:00
parent e2033992c7
commit 4b0d5c31de
4 changed files with 4 additions and 4 deletions

View File

@ -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")
}

View File

@ -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"
}

View File

@ -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")
}

View File

@ -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")
}