Is there a preferred approach to setting up in and out interceptors?  I'm
doing the following, which works:

@Configuration
public class RestConfig {
@Autowired
private SpringComponentScanServer provider;
@Bean
public HelloController helloController() {
return new HelloController("blah");
}
@PostConstruct
public void prepareInterceptors() {
provider.getInInterceptors().add(new LoggingInInterceptor());
provider.getOutInterceptors().add(new LoggingOutInterceptor());
}
}

Reply via email to