X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Ffacebook%2Ferrors%2FFacebookErrorsOAuth2AutoConfiguration.java;h=82b5b154f103ef312d514b37dbdec8a08f6709f2;hb=d0480b8126b1ef1cf5ee65c4faba408ea04f8c80;hp=c1647fc52bb3ab97119ed3dd2baf797ece698ae1;hpb=f17e9f2619485ca021b8751eba55c5e2040cd1ff;p=facebook-errors diff --git a/src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java b/src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java index c1647fc..82b5b15 100644 --- a/src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java +++ b/src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java @@ -6,7 +6,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration; import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -18,10 +18,9 @@ import org.springframework.context.annotation.Configuration; * @author Kai Moritz */ @Configuration -@ConditionalOnClass(value = OAuth2RestTemplate.class) @AutoConfigureAfter({ WebMvcAutoConfiguration.class, - OAuth2AutoConfiguration.class + OAuth2ClientAutoConfiguration.class }) public class FacebookErrorsOAuth2AutoConfiguration {