Slide 18
Slide 18 text
18
Customization -
InstanceExchangeFilterFunction
@Bean
public InstanceExchangeFilterFunction auditLog() {
return (instance, request, next) -> {
if (HttpMethod.POST.equals(request.method())) {
log.info("{} for {} on {}",
request.method(), instance.getId(), request.url());
}
return next.exchange(request);
};
}