Abstract base for EndpointMapping implementations that map classes tagged with
an annotation. By default the annotation is Endpoint, but this can be overriden in subclasses.
public void setDetectEndpointsInAncestorContexts(boolean detectEndpointsInAncestorContexts)
Set whether to detect endpoint beans in ancestor ApplicationContexts.
Default is "false": Only endpoint beans in the current ApplicationContext will be detected, i.e. only in the
context that this EndpointMapping itself is defined in (typically the current MessageDispatcherServlet's
context).
Switch this flag on to detect endpoint beans in ancestor contexts (typically the Spring root
WebApplicationContext) as well.