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