1.
<servlet> <servlet-name> AutoServlet </servlet-name> <servlet-class> com.thinkgem.jeesite.common.autoRun.AutoServlet </servlet-class> <load-on-startup> 1 </load-on-startup> </servlet> <servlet-mapping> <servlet-name>AutoServlet</servlet-name> <url-pattern>/AutoServlet</url-pattern> </servlet-mapping>
2.
<bean id="test" class="com.thinkgem.jeesite.common.autoRun.AutoServlet" init-method="init"></bean>