parent
05e402295d
commit
38594cd820
|
|
@ -18,7 +18,6 @@ package org.springframework.boot.actuate.endpoint;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -84,11 +83,8 @@ public class RequestMappingEndpoint extends AbstractEndpoint<Map<String, Object>
|
||||||
protected void extractMethodMappings(ApplicationContext applicationContext,
|
protected void extractMethodMappings(ApplicationContext applicationContext,
|
||||||
Map<String, Object> result) {
|
Map<String, Object> result) {
|
||||||
if (applicationContext != null) {
|
if (applicationContext != null) {
|
||||||
Map<String, AbstractHandlerMethodMapping<?>> mappings = new HashMap<String, AbstractHandlerMethodMapping<?>>();
|
|
||||||
for (String name : applicationContext.getBeansOfType(
|
for (String name : applicationContext.getBeansOfType(
|
||||||
AbstractHandlerMethodMapping.class).keySet()) {
|
AbstractHandlerMethodMapping.class).keySet()) {
|
||||||
mappings.put(name, applicationContext.getBean(name,
|
|
||||||
AbstractHandlerMethodMapping.class));
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Map<?, HandlerMethod> methods = applicationContext.getBean(name,
|
Map<?, HandlerMethod> methods = applicationContext.getBean(name,
|
||||||
AbstractHandlerMethodMapping.class).getHandlerMethods();
|
AbstractHandlerMethodMapping.class).getHandlerMethods();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue