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