Make hystrix dashboard embeddable finally
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user