@Bean @ConditionalOnMissingBean(HiddenHttpMethodFilter.class) public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter() { OrderedHiddenHttpMethodFilter filter = new OrderedHiddenHttpMethodFilter(); filter.setMethodParam("_disable_spring_mvc_hidden_method_for_fucking_zuul"); return filter; }
/** * Register a {@link OrderedHiddenHttpMethodFilter} to handle {RequestMethod.DELETE} requests * @return */ @Bean public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter(){ return new OrderedHiddenHttpMethodFilter(); }
@Bean @ConditionalOnMissingBean(HiddenHttpMethodFilter.class) public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter() { return new OrderedHiddenHttpMethodFilter(); }
@Bean public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter() { return new OrderedHiddenHttpMethodFilter(); }