How to use custom NamespaceHandlerResolver when creating XML ApplicationContext?
问题 I would like to use a custom NamespaceHandlerResolver when creating a spring application context from xml. The spring documentation only explains how to create custom NamespaceHandler. But I need to use a specifically initialized NamespaceHandlerResolver in order to get the NamespaceHandler s I need to use corretly initialized ( NamespaceHandler s are context dependent). So when creating an xml applicationcontext, how to set a custom NamespaceHandlerResolver ? 回答1: One needs to create an