protected String extractControllerNameFrom ( Class < ? > type ) { String prefix = extractPrefix ( type ) ; if ( isNullOrEmpty ( prefix ) ) { String baseName = StringUtils . lowercaseFirst ( type . getSimpleName ( ) ) ; if ( baseName . endsWith ( "Controller" ) ) { return "/" + baseName . substring ( 0 , baseName . lastIndexOf ( "Controller" ) ) ; } return "/" + baseName ; } else { return prefix ; } }
You can override this method for use a different convention for your controller name given a type