added java configuration of HandlerMapping and HandlerAdapter