gradle-tomcat-plugin
gradle-tomcat-plugin copied to clipboard
Skip Jar Scanning for Annotations
Is there anyway for me to instruct tomcat to skip scanning for annotations in jar files?
My current start-up time is about 1 minute 20 seconds. If I add metadata-complete="true" to my web.xml file, I can reduce the startup time to about 7 seconds, however I lose the ability to use the @WebServlet annontation.
A stand alone tomcat instance take about 7-8 seconds to startup with annontation scanning in my classpath. It is skipping scanning the included jars in my project.
Hello,
To avoid this just add an META-INF/context.xml file to your webapp with the fallowing content :
<Context> <JarScanner scanClassPath="false" scanAllFiles="false" scanAllDirectories="false"></JarScanner> </Context>