@Autowired
private WebApplicationContext applicationContext;
Set<String> noLoginUrlSet = new HashSet<>();
RequestMappingHandlerMapping mapping = applicationContext.getBean(RequestMappingHandlerMapping.class);
Map<RequestMappingInfo, HandlerMethod> handlerMethods = mapping.getHandlerMethods();
for (RequestMappingInfo rmi : handlerMethods.keySet()) {
HandlerMethod handlerMethod = handlerMethods.get(rmi);
getResponse().getWriter().write(rmi.getPatternsCondition().getPatterns().toString() +"=>>"+handlerMethod.getBeanType().getName()+"|" + handlerMethod.getMethod().getName() +"\n");
//输出url,controller,和method
}