private Collection<Class<? extends Controller>> getControllerClasses(String... packageNames) {
        log.debug("Discovering annotated controller in package(s) '{}'", Arrays.toString(packageNames));
        return ClassUtils.getSubTypesOf(Controller.class, packageNames);
    }
private Collection < Class < ? extends Controller > > getControllerClasses ( String ... packageNames ) { log . debug ( "Discovering annotated controller in package(s) '{}'" , Arrays . toString ( packageNames ) ) ; return ClassUtils . getSubTypesOf ( Controller . class , packageNames ) ; }
Discover Controller classes.

@param packageNames
@return controller classes