2011年9月15日 星期四

web.xml設定啟動時載入的servlet class

可在此servlet 載入執行需要的thread

配置:
<servlet>
    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/web-application-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>
    
<servlet-mapping>
    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    <url-pattern>/spring/*</url-pattern>
</servlet-mapping>
 
 http://static.springsource.org/spring-webflow/docs/2.0.x/reference/html/ch12s03.html

沒有留言:

張貼留言