类 ControllerBeanNameHandlerMapping

    • 方法详细资料

      • setUrlPrefix

        public void setUrlPrefix​(String urlPrefix)
        已过时。
        Set an optional prefix to prepend to generated URL mappings.

        By default this is an empty String. If you want a prefix like "/myapp/", you can set it for all beans mapped by this mapping.

      • setUrlSuffix

        public void setUrlSuffix​(String urlSuffix)
        已过时。
        Set an optional suffix to append to generated URL mappings.

        By default this is an empty String. If you want a suffix like ".do", you can set it for all beans mapped by this mapping.

      • generatePathMapping

        protected String generatePathMapping​(String beanName)
        已过时。
        Prepends a '/' if required and appends the URL suffix to the name.