Why is resteasy.providers still required when using Spring with @Provider annotations? Why is resteasy.providers still required when using Spring with @Provider annotations? spring spring

Why is resteasy.providers still required when using Spring with @Provider annotations?


In order to get the providers scanned by Spring I had to add the includeFilters parameter to @ComponentScan on my Spring Java configuration class.

@ComponentScan(value = "com.foo",                includeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, value = Provider.class))

You can also just annotate them with @Component along with @Provider and Spring will make sure they get detected by Resteasy when using Resteasy's SpringContextLoaderListener.