class XssIgnoreConfig implements InitializingBean {

    @Autowired
    private WebApplicationContext applicationContext;

    private static final Pattern PATTERN = Pattern.compile("\\{(.*?)\\}");
    private static final String ASTERISK = "*";

    @Getter
    @Setter
    private List<String> ignoreUrls = new ArrayList<>();

    @Override
    public void afterPropertiesSet(){<FILL_FUNCTION_BODY>}

    public boolean isContains(String url){
        final String u = ReUtil.replaceAll(url, PATTERN, ASTERISK);
        return ignoreUrls.contains(u);
    }
}

        RequestMappingHandlerMapping mapping = applicationContext.getBean("requestMappingHandlerMapping",RequestMappingHandlerMapping.class);
        Map<RequestMappingInfo, HandlerMethod> map = mapping.getHandlerMethods();
        map.keySet().forEach(mappingInfo -> {
            HandlerMethod handlerMethod = map.get(mappingInfo);
            XssIgnore method = AnnotationUtils.findAnnotation(handlerMethod.getMethod(), XssIgnore.class);
            if(method != null){
                mappingInfo.getPathPatternsCondition().getPatternValues().stream().forEach(url ->{
                    ignoreUrls.add(ReUtil.replaceAll(url, PATTERN, ASTERISK));
                });
            }
        });
    
<no_super_class>