类 PropertiesMethodNameResolver

  • 所有已实现的接口:
    InitializingBean, MethodNameResolver

    @Deprecated
    public class PropertiesMethodNameResolver
    extends AbstractUrlMethodNameResolver
    implements InitializingBean
    已过时。
    as of 4.3, in favor of annotation-driven handler methods
    The most flexible out-of-the-box implementation of the MethodNameResolver interface. Uses java.util.Properties to define the mapping between the URL of incoming requests and the corresponding method name. Such properties can be held in an XML document.

    Properties format is /welcome.html=displayGenresPage Note that method overloading isn't allowed, so there's no need to specify arguments.

    Supports direct matches, e.g. a registered "/test" matches "/test", and a various Ant-style pattern matches, e.g. a registered "/t*" matches both "/test" and "/team". For details, see the AntPathMatcher javadoc.

    作者:
    Rod Johnson, Juergen Hoeller
    另请参阅:
    Properties, AntPathMatcher