Browse Source

Disable JNDI on Jetty by default

Our Investigations show that JNDI lookup is quite costly on Jetty and it
was enabled by default while embedded tomcat does not. This commit
excludes `jetty-jndi` to align the behavior with Tomcat.

If you are relying on JNDI, the `jetty-jndi` should simply be added in
your project.

Closes gh-4710
pull/5041/head
Stephane Nicoll 10 years ago
parent
commit
2b2e21dbbf
  1. 6
      spring-boot-starters/spring-boot-starter-jetty/pom.xml

6
spring-boot-starters/spring-boot-starter-jetty/pom.xml

@ -33,6 +33,12 @@
<dependency> <dependency>
<groupId>org.eclipse.jetty.websocket</groupId> <groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>javax-websocket-server-impl</artifactId> <artifactId>javax-websocket-server-impl</artifactId>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jndi</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

Loading…
Cancel
Save