Make hystrix dashboard embeddable finally

This commit is contained in:
Dave Syer
2014-09-02 19:36:20 +01:00
parent 5a8b0496be
commit 02c5670dda
2 changed files with 4 additions and 4 deletions

View File

@@ -36,14 +36,14 @@ public class HystrixCompilerAutoConfiguration extends CompilerAutoConfiguration
@Override
public void applyDependencies(DependencyCustomizer dependencies) {
dependencies.ifAnyMissingClasses(
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrix")
"org.springframework.cloud.netflix.hystrix.EnableHystrix")
.add("spring-cloud-starter-hystrix");
}
@Override
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
imports.addImports(
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrix",
"org.springframework.cloud.netflix.hystrix.EnableHystrix",
"com.netflix.hystrix.contrib.javanica.annotation.HystrixCollapser",
"com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand");
}

View File

@@ -36,14 +36,14 @@ public class HystrixDashboardCompilerAutoConfiguration extends CompilerAutoConfi
@Override
public void applyDependencies(DependencyCustomizer dependencies) {
dependencies.ifAnyMissingClasses(
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrixDashboard")
"org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard")
.add("spring-cloud-starter-hystrix-dashboard");
}
@Override
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
imports.addImports(
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrixDashboard");
"org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard");
}
}