Primefaces FileUpload not working in Spring Boot

前端 未结 3 1980
失恋的感觉
失恋的感觉 2021-01-05 18:24

I\'m running my JSF project launching it with Spring Boot and taking advantage of the whole Spring environment. The configuration is: Mojarra 2.2.8 + Primefaces 5.1 + Spring

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 18:35

    Just to put my two cents, with Spring boot 1.4.2.RELEASE, Primefaces 6.0, OCP Soft rewrite 2.0.12.Final, JSF 2.1.29-08 and application deployed on Tomcat 8, I also need to disable spring hiddenHttpMethodFilter.

    @Bean
    public FilterRegistrationBean hiddenHttpMethodFilterDisabled(
            @Qualifier("hiddenHttpMethodFilter") HiddenHttpMethodFilter filter) { 
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(filter);
        filterRegistrationBean.setEnabled(false);
        return filterRegistrationBean;
    }
    

    I have spent with this issue almost two days and as last thing I have tried to disable spring filters one by one, so I hope it will help someone.

提交回复
热议问题