|
|
@ -106,16 +106,6 @@ public class JerseyAutoConfiguration implements ServletContextAware {
|
|
|
|
customize();
|
|
|
|
customize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String resolveApplicationPath() {
|
|
|
|
|
|
|
|
if (StringUtils.hasLength(this.jersey.getApplicationPath())) {
|
|
|
|
|
|
|
|
return this.jersey.getApplicationPath();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
return findApplicationPath(AnnotationUtils.findAnnotation(
|
|
|
|
|
|
|
|
this.config.getApplication().getClass(), ApplicationPath.class));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void customize() {
|
|
|
|
private void customize() {
|
|
|
|
this.customizers.orderedStream()
|
|
|
|
this.customizers.orderedStream()
|
|
|
|
.forEach((customizer) -> customizer.customize(this.config));
|
|
|
|
.forEach((customizer) -> customizer.customize(this.config));
|
|
|
@ -127,6 +117,14 @@ public class JerseyAutoConfiguration implements ServletContextAware {
|
|
|
|
return this::resolveApplicationPath;
|
|
|
|
return this::resolveApplicationPath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String resolveApplicationPath() {
|
|
|
|
|
|
|
|
if (StringUtils.hasLength(this.jersey.getApplicationPath())) {
|
|
|
|
|
|
|
|
return this.jersey.getApplicationPath();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return findApplicationPath(AnnotationUtils.findAnnotation(
|
|
|
|
|
|
|
|
this.config.getApplication().getClass(), ApplicationPath.class));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(name = "jerseyFilterRegistration")
|
|
|
|
@ConditionalOnMissingBean(name = "jerseyFilterRegistration")
|
|
|
|
@ConditionalOnProperty(prefix = "spring.jersey", name = "type", havingValue = "filter")
|
|
|
|
@ConditionalOnProperty(prefix = "spring.jersey", name = "type", havingValue = "filter")
|
|
|
|