Sharing parent spring context with child in spring 5
问题 How to share parent context with child in spring 5? Using spring 4, we could pass locatorFactorySelector as context-param <context-param> <param-name>locatorFactorySelector</param-name> <param-value>classpath:refFactory.xml</param-value> </context-param> This support is removed from Spring 5 onward. What is the alternative to pass the parent context in web context? 回答1: The loading of the parent context based on locatorFactorySelector were handled at ContextLoader#loadParentContext() . But