diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java index 7cf474edc7..94f6501fd9 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java @@ -118,7 +118,7 @@ public class JerseyAutoConfiguration implements ServletContextAware { } else { this.path = findApplicationPath(AnnotationUtils - .findAnnotation(this.config.getClass(), ApplicationPath.class)); + .findAnnotation(this.config.getApplication().getClass(), ApplicationPath.class)); } }