类 JerseyAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.web.context.ServletContextAware
@Configuration @ConditionalOnClass(name={"org.glassfish.jersey.server.spring.SpringComponentProvider","javax.servlet.ServletRegistration"}) @ConditionalOnBean(type="org.glassfish.jersey.server.ResourceConfig") @ConditionalOnWebApplication(type=SERVLET) @AutoConfigureOrder(-2147483648) @AutoConfigureBefore(DispatcherServletAutoConfiguration.class) @AutoConfigureAfter(JacksonAutoConfiguration.class) @EnableConfigurationProperties(JerseyProperties.class) public class JerseyAutoConfiguration extends Object implements org.springframework.web.context.ServletContextAware
Auto-configuration
for Jersey.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
JerseyAutoConfiguration.JerseyWebApplicationInitializer
构造器概要
构造器 构造器 说明 JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<ResourceConfigCustomizer> customizers)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JerseyApplicationPath
jerseyApplicationPath()
org.springframework.boot.web.servlet.FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyFilterRegistration(JerseyApplicationPath applicationPath)
org.springframework.boot.web.servlet.ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyServletRegistration(JerseyApplicationPath applicationPath)
void
path()
void
setServletContext(javax.servlet.ServletContext servletContext)
构造器详细资料
JerseyAutoConfiguration
public JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<ResourceConfigCustomizer> customizers)
方法详细资料
path
@PostConstruct public void path()
jerseyApplicationPath
@Bean @ConditionalOnMissingBean public JerseyApplicationPath jerseyApplicationPath()
jerseyFilterRegistration
@Bean @ConditionalOnMissingBean(name="jerseyFilterRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="filter") public org.springframework.boot.web.servlet.FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyFilterRegistration(JerseyApplicationPath applicationPath)
jerseyServletRegistration
@Bean @ConditionalOnMissingBean(name="jerseyServletRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="servlet", matchIfMissing=true) public org.springframework.boot.web.servlet.ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyServletRegistration(JerseyApplicationPath applicationPath)
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- 指定者:
setServletContext
在接口中org.springframework.web.context.ServletContextAware