Improve Java Web Development Server Startup Time

  1. If using SpringFramework, try to add this in applicationContext.xml 
    <?xml version="1.0" encoding="UTF-8"?> 
    <beans xmlns=" http://www.springframework.org/schema/beans "  default-lazy-init="true"  ...
  2. If using SpringFramework 3.x or above and enable servlet 3.0, add this in web.xml and update the spring-web-x.x.x.RELEASE.jar
    web.xml:  metadata-complete="true"
    spring-web-x.x.x.RELEASE.jar:Remote the file : \META-
     INF\services\javax.servlet.ServletContainerInitializer。to disable auto-scanning web config in  servlet3.0
  3. Upgrade JDK/JVM to the latest version
  4. Disable Xdoclet Maven Plugin

你可能感兴趣的:(Java Web)