|
|
|
@ -34,6 +34,7 @@ import org.apache.commons.logging.Log;
|
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
|
import org.glassfish.jersey.jackson.JacksonFeature;
|
|
|
|
|
import org.glassfish.jersey.server.ResourceConfig;
|
|
|
|
|
import org.glassfish.jersey.server.spring.SpringComponentProvider;
|
|
|
|
|
import org.glassfish.jersey.servlet.ServletContainer;
|
|
|
|
|
import org.glassfish.jersey.servlet.ServletProperties;
|
|
|
|
|
|
|
|
|
@ -76,8 +77,7 @@ import org.springframework.web.filter.RequestContextFilter;
|
|
|
|
|
* @author Stephane Nicoll
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(name = { "org.glassfish.jersey.server.spring.SpringComponentProvider",
|
|
|
|
|
"javax.servlet.ServletRegistration" })
|
|
|
|
|
@ConditionalOnClass({ SpringComponentProvider.class, ServletRegistration.class })
|
|
|
|
|
@ConditionalOnBean(type = "org.glassfish.jersey.server.ResourceConfig")
|
|
|
|
|
@ConditionalOnWebApplication(type = Type.SERVLET)
|
|
|
|
|
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE)
|
|
|
|
|