类 GenericXmlApplicationContext

    • 构造器详细资料

      • GenericXmlApplicationContext

        public GenericXmlApplicationContext​(Resource... resources)
        Create a new GenericXmlApplicationContext, loading bean definitions from the given resources and automatically refreshing the context.
        参数:
        resources - the resources to load from
      • GenericXmlApplicationContext

        public GenericXmlApplicationContext​(String... resourceLocations)
        Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the context.
        参数:
        resourceLocations - the resources to load from
      • GenericXmlApplicationContext

        public GenericXmlApplicationContext​(Class<?> relativeClass,
                                            String... resourceNames)
        Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the context.
        参数:
        relativeClass - class whose package will be used as a prefix when loading each specified resource name
        resourceNames - relatively-qualified names of resources to load