@RequestMapping @ResponseBody public List<Map<String, Object>> invoke() { List<Map<String, Object>> result = new ArrayList<Map<String, Object>>(); MvcEndpoints mvcEndpoints = context.getBean(MvcEndpoints.class); if (mvcEndpoints != null) { for (MvcEndpoint endpoint : mvcEndpoints.getEndpoints()) { Map<String, Object> endpointInfo = new HashMap<String, Object>(); endpointInfo.put("sensitive", endpoint.isSensitive()); endpointInfo.put("path", endpoint.getPath()); if (endpoint.getEndpointType() != null) { endpointInfo.put("endpointType", endpoint.getEndpointType().getName()); } else { endpointInfo.put("endpointType", endpoint.getClass().getName()); } result.add(endpointInfo); } } return result; }