By extending the AbstractPhaseInterceptor. (org.apache.cxf.phase.AbstractPhaseInterceptor) https://cxf.apache.org/docs/interceptors.html
By implementing the HandlerInterceptor https://www.tutorialspoint.com/spring_boot/spring_boot_interceptor.htm
Which one is the best choice for Spring boot microservice creation?