I'm creating different Filter
@Bean
, and would like to enforce the execution of a specific filter before the other filter:
@Bean
@Order(1)
public Filter getLoggingUuidFilter() {
return new Filter() {
//...
};
}
@Bean
@Order(2)
public Filter getLoggingRequestFilter() {
return new CommonsRequestLoggingFilter();
}
Result: Filter2 executes before Filter1. Why?