随笔分类 -  spring

摘要:在web.xml中通过contextConfigLocation配置spring,contextConfigLocation参数定义了要装入的 Spring 配置文件。如果想装入多个配置文件,可以在<param-value>标记中用逗号作分隔符。在web.xml里配置Listenerxml代码如下:<listener><listener-class>org.springframework.web.context.ContextLoaderListenerlistener-class></listener>如果在web.xml里给该Liste 阅读全文
posted @ 2013-06-03 19:17 小泥巴1024 阅读(175) 评论(0) 推荐(0)
摘要:增加方式如下:<listener><listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class></listener>spring的说明如下:Listener that flushes the JDK's JavaBeans Introspectorcache on web app shutdown. Register this listener in your web.xml toguarantee proper rele 阅读全文
posted @ 2013-06-03 18:24 小泥巴1024 阅读(250) 评论(0) 推荐(0)