---
title: "Improve Java Web Development Server Startup Time"
author: "wintersun"
date: "2015-02-04T13:01:57Z"
tags: []
categories: ["编程语言"]
slug: "improve-java-web-development-server-startup-time"
draft: false
lastmod: "2015-02-04T13:01:57Z"
id: 2183274
url: "https://search.iteye.com/blog/2183274"
---

1. If using SpringFramework, try to add this in **applicationContext.xml** 
   
   &lt;?xml version="1.0" encoding="UTF-8"?&gt;   
   &lt;beans xmlns="[http://www.springframework.org/schema/beans](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