web.xml中配置——加载spring容器

<context-param>

        <param-name>contextConfigLocation</param-name>

        <param-value>classpath:applicationContext*.xml</param-value>

    </context-param>

    <listener>      

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

    </listener>

posted @ 2019-07-02 09:15  keepup~  阅读(1501)  评论(0编辑  收藏  举报