web xml spring 中 contextconfiglocation 的用途是什么?

what is use of contextconfiglocation in web xml spring?

在Spring中,ContextConfigLocationInternalResourceViewResolver的目的是什么?我不明白这些 类.

的目的

contexConficLocation 正在 web.xml 文件中使用。 此目的是覆盖用户希望的实际或默认 xml 文件。 它在标签下 前任。

    `<context-param>
        <param-name>contextConfigLocation</param-name>
     <param-value>WEB-INF/spring-config.xml,
                    WEB-INF/spring-servlet.xml
                    </param-value>
                </context-param>`

InternalResourceViewResolverservlet xml 文件中使用它位于 viewResolver bean 下。

EX。 <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="WEB-INF/view/"></property> <property name="suffix" value=".jsp"></property> </bean> </beans>