收藏一个spring资源

http://www.theserverside.com/news/thread.tss?thread_id=61226

 

<servlet>
<servlet-name>Search</servlet-name>
<servlet-class>myPackage.SearchServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>

两种map filter的方式:

<filter>
<filter-name>Reporter</filter-name>
<filter-class>coreservlets.ReportFilter</filter-class>
</filter>

 

<filter-mapping>
<filter-name>Reporter</filter-name>
<servlet-name>SomeServletName</servlet-name>
</filter-mapping>

 

<filter-mapping>
<filter-name>Reporter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

你可能感兴趣的:(spring,职场,资源,收藏,休闲)