ITeye博客

Improve Java Web Development Server Startup Time

wintersun · 2015-02-04 13:01 · Java · Jetty · 编程语言 · Markdown

  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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。