spring-web

来源:互联网 发布:console mysql 编辑:程序博客网 时间:2024/05/22 16:37

  

确定配置文件位置

<context-param>

    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:applicationContext.xml</param-value>

  </context-param>


配置spring监听器

  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
0 0