Skip to content

Instantly share code, notes, and snippets.

@zzzfree
Created February 28, 2013 23:59
Show Gist options
  • Save zzzfree/5061233 to your computer and use it in GitHub Desktop.
Save zzzfree/5061233 to your computer and use it in GitHub Desktop.
在web.xml中配置
配置监听器:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
配置监听器监听的xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment