class FilterConfig {

    @Bean
    public FilterRegistrationBean xssFilterRegistration() {<FILL_FUNCTION_BODY>}

}

        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setDispatcherTypes(DispatcherType.REQUEST);
        registration.setFilter(new XssFilter());
        registration.addUrlPatterns("/*");
        registration.setName("xssFilter");
        registration.setOrder(Integer.MAX_VALUE);
        return registration;
    
<no_super_class>