以前在Servlet里面我们都是重写httpServlet的init方法来达到,在Spring里面我们只需要配置一下就能达到目的
<!--注意:lazy-init="false" init-method="init" -->
<bean id="cacheLoder" lazy-init="false" class="CacheLoder" init-method="init" />
以前在Servlet里面我们都是重写httpServlet的init方法来达到,在Spring里面我们只需要配置一下就能达到目的
<!--注意:lazy-init="false" init-method="init" -->
<bean id="cacheLoder" lazy-init="false" class="CacheLoder" init-method="init" />
文章评论