<load-on-startup>1</load-on-startup> 服务器在启动的时候就加载这个servlet
例:
<servlet> <servlet-name>blog</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>blog</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>