Break up hystrix dashboard

This commit is contained in:
Dave Syer
2014-09-02 10:11:10 +01:00
parent bef0ac03f2
commit 816fdfd07b

View File

@@ -30,7 +30,7 @@ public class OAuth2SsoCompilerAutoConfiguration extends CompilerAutoConfiguratio
@Override
public boolean matches(ClassNode classNode) {
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableOAuth2Sso","EnableCloudfoundrySso");
return AstUtils.hasAtLeastOneAnnotation(classNode, "EnableOAuth2Sso");
}
@Override
@@ -39,13 +39,12 @@ public class OAuth2SsoCompilerAutoConfiguration extends CompilerAutoConfiguratio
.ifAnyMissingClasses(
"org.springframework.cloud.cloudfoundry.sso.EnableOAuth2Sso")
.add("spring-cloud-starter-cloudfoundry")
.add("org.springframework.security.oauth:spring-security-oauth2:2.0.3.RELEASE");
.add("spring-security-oauth2");
}
@Override
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
imports.addImports(
"org.springframework.cloud.cloudfoundry.sso.EnableCloudfoundrySso",
"org.springframework.cloud.cloudfoundry.sso.EnableOAuth2Sso",
"org.springframework.cloud.cloudfoundry.sso.OAuth2SsoConfigurerAdapter");
}