摘要:
何时加载ContextLoaderListener? ContextLoaderListener:继承ContextLoader,实现ServletContextListener,接收web应用ServletContext变化的通知,将监听器配置在web.xml中。我们一般会在xml中做如下配置: 阅读全文
posted @ 2020-07-31 14:08
莫伊u
阅读(345)
评论(0)
推荐(0)
摘要:
<context:component-scan/> 扫描组件,可以被@ComponentScan代替 使用<context:component-scan/>后,就可以将<context:annotation-config/>移除 <context:annotation-config/>向Spring 阅读全文
posted @ 2020-07-31 14:07
莫伊u
阅读(603)
评论(0)
推荐(0)
摘要:
从我们熟悉的web.xml开始... 1、web.xml: 指定spring配置文件bean.xml(默认applicationContext.xml) 指定servlet配置文件,默认[servletName]-servlet.xml <?xml version="1.0" encoding="U 阅读全文
posted @ 2020-07-31 14:06
莫伊u
阅读(221)
评论(0)
推荐(0)

浙公网安备 33010602011771号