class WebConfigure implements WebMvcConfigurer {

    /*
    @Bean(name="sitemesh3")
    SiteMeshFilter siteMeshFilter(){
        return new SiteMeshFilter();
    }

    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("forward:/login.do");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    }
    */

    @Bean
    public FilterRegistrationBean registerOpenEntityManagerInViewFilterBean() {
        FilterRegistrationBean registrationBean = new FilterRegistrationBean();
        OpenEntityManagerInViewFilter filter = new OpenEntityManagerInViewFilter();
        registrationBean.setFilter(filter);
        registrationBean.addUrlPatterns("*.do");
        return registrationBean;
    }

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


    /*
    @Bean
    public FilterRegistrationBean filterRegistrationBean(@Qualifier("sitemesh3") SiteMeshFilter siteMeshFilter){
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        filterRegistrationBean.setFilter(siteMeshFilter);
        filterRegistrationBean.setEnabled(true);
        filterRegistrationBean.addUrlPatterns("*.do");
        return filterRegistrationBean;
    }


    @Bean
    public FilterRegistrationBean filterRegistrationBean(){
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        UrlRewriteFilter urlRewriteFilter = new UrlRewriteFilter();
        filterRegistrationBean.setFilter(urlRewriteFilter);
        filterRegistrationBean.setEnabled(true);
        filterRegistrationBean.addUrlPatterns("/*");
        return filterRegistrationBean;
    }
    */

    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //文件磁盘图片url 映射
        //配置server虚拟路径，handler为前台访问的目录，locations为files相对应的本地路径
        //registry.addResourceHandler("/WEB-INF/**").addResourceLocations("file:/home/IdeaProjects/dwsurvey/src/main/webapp/WEB-INF");
//        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
    }


}

        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        DelegatingFilterProxy proxy = new DelegatingFilterProxy();
        proxy.setTargetFilterLifecycle(true);
        proxy.setTargetBeanName("shiroFilter");
        filterRegistrationBean.setFilter(proxy);
        filterRegistrationBean.addUrlPatterns("/*");
        return filterRegistrationBean;
    
<no_super_class>