@Configuration @ConditionalOnClass(name={"org.glassfish.jersey.server.spring.SpringComponentProvider","javax.servlet.ServletRegistration"}) @ConditionalOnBean(type="org.glassfish.jersey.server.ResourceConfig") @ConditionalOnWebApplication public class JerseyAutoConfiguration extends Object
Auto-configuration
for Jersey.Constructor and Description |
---|
JerseyAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServletRegistrationBean |
jerseyServletRegistration() |
void |
onStartup(ServletContext servletContext) |
void |
path() |
RequestContextFilter |
requestContextFilter() |
@PostConstruct public void path()
@Bean @ConditionalOnMissingBean public RequestContextFilter requestContextFilter()
@Bean @ConditionalOnMissingBean(name="jerseyServletRegistration") public ServletRegistrationBean jerseyServletRegistration()
public void onStartup(ServletContext servletContext) throws ServletException
ServletException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.