Example usage for org.springframework.web.context.support WebApplicationContextUtils initServletPropertySources

List of usage examples for org.springframework.web.context.support WebApplicationContextUtils initServletPropertySources

Introduction

In this page you can find the example usage for org.springframework.web.context.support WebApplicationContextUtils initServletPropertySources.

Prototype

public static void initServletPropertySources(MutablePropertySources propertySources,
        ServletContext servletContext) 

Source Link

Document

Convenient variant of #initServletPropertySources(MutablePropertySources,ServletContext,ServletConfig) that always provides null for the ServletConfig parameter.

Usage

From source file:org.geoserver.test.GeoServerTestApplicationContext.java

@Override
protected void initPropertySources() {
    super.initPropertySources();
    WebApplicationContextUtils.initServletPropertySources(this.getEnvironment().getPropertySources(),
            this.servletContext);
}