@Configuration @EnableConfigurationProperties(value=HystrixDashboardProperties.class) public class HystrixDashboardConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HystrixDashboardConfiguration.ProxyStreamServlet
Proxy an EventStream request (data.stream via proxy.stream) since EventStream does
not yet support CORS (https://bugs.webkit.org/show_bug.cgi?id=61862) so that a UI
can request a stream from a different server.
|
Constructor and Description |
---|
HystrixDashboardConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer |
freeMarkerConfigurer()
Overrides Spring Boot's
FreeMarkerAutoConfiguration to prefer using a
SpringTemplateLoader instead of the file system. |
HystrixDashboardController |
hsytrixDashboardController() |
org.springframework.cloud.client.actuator.HasFeatures |
hystrixDashboardFeature() |
org.springframework.boot.web.servlet.ServletRegistrationBean |
proxyStreamServlet() |
@Bean public org.springframework.cloud.client.actuator.HasFeatures hystrixDashboardFeature()
@Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer()
FreeMarkerAutoConfiguration
to prefer using a
SpringTemplateLoader
instead of the file system. This corrects an issue
where Spring Boot may use an empty 'templates' file resource to resolve templates
instead of the packaged Hystrix classpath templates.@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean proxyStreamServlet()
@Bean public HystrixDashboardController hsytrixDashboardController()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.