随笔分类 - 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
阅读全文
摘要:增加方式如下:<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
阅读全文
浙公网安备 33010602011771号