接口 ConfigurableWebApplicationContext

    • 方法详细资料

      • setNamespace

        void setNamespace​(String namespace)
        Set the namespace for this web application context, to be used for building a default context config location. The root web application context does not have a namespace.
      • getNamespace

        String getNamespace()
        Return the namespace for this web application context, if any.
      • setConfigLocation

        void setConfigLocation​(String configLocation)
        Set the config locations for this web application context in init-param style, i.e. with distinct locations separated by commas, semicolons or whitespace.

        If not set, the implementation is supposed to use a default for the given namespace or the root web application context, as appropriate.

      • setConfigLocations

        void setConfigLocations​(String... configLocations)
        Set the config locations for this web application context.

        If not set, the implementation is supposed to use a default for the given namespace or the root web application context, as appropriate.

      • getConfigLocations

        String[] getConfigLocations()
        Return the config locations for this web application context, or null if none specified.