protected void detectHandlerMethods ( ) { processAtmostRequestMappingInfo ( ) ; try { registerNativeFunctionHandlers ( handlerMappingInfoStorage . getHandlerMappingInfos ( ) , NativeFunctionResponseBodyHandler . class ) ; registerNativeFunctionHandlers ( handlerMappingInfoStorage . getHandlerWithViewMappingInfos ( ) , NativeFunctionModelAndViewHandler . class ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
read user - defined javascript files in configured directory and register handler methods in those files as Spring MVC handler .