Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.23 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.23 KB

NULL JarScanner Build Status Maven Central Javadocs

Disables all class path scanning by Tomcat. This improves Tomcat startup time but makes it no longer Servlet API Spec compliant since TLDs and @HandlesTypes are no longer picked up.

Usage

<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>null-jarscanner</artifactId>
    <version>1.0.0</version>
</dependency>

Copy the JAR to $CATALINA_BASE/lib the JAR must not be in your web application.

Use the following META-INF/context.xml

<Context>

  <JarScanner className="com.github.marschall.nulljarscanner.NullJarScanner" />

</Context>

Documentation

See the official Jar Scanner documentation.