Hystrix仪表板不适用于Jersey端点

Hystrix仪表板不适用于Jersey端点,jersey,hystrix,Jersey,Hystrix,我有一个springboot应用程序,它有一个使用Jersey/JAX-RS注释实现的公共端点。 Hystrix Dashboard是通过@EnableHystrixDashboard启用的,HystrixMetricStreamServlet注册在“/Hystrix.stream”下(如下面的示例所示) 访问…/hystrix.stream时,hystrix命令的度量数据可用,但初学者仪表板页面“/hystrix”为空给出HTTP 404状态代码 你知道为什么不能用球衣穿吗 如果SpringW

我有一个springboot应用程序,它有一个使用Jersey/JAX-RS注释实现的公共端点。 Hystrix Dashboard是通过@EnableHystrixDashboard启用的,HystrixMetricStreamServlet注册在“/Hystrix.stream”下(如下面的示例所示)

访问…/hystrix.stream时,hystrix命令的度量数据可用,但初学者仪表板页面“/hystrix”为空给出HTTP 404状态代码

你知道为什么不能用球衣穿吗

如果SpringWebMVC(而不是Jersey)也实现了同样的功能,则仪表板页面可用

Mypom.xml

  • 不包括spring webmvc,取决于jersey
  • 取决于hystrix、事件流、仪表板、执行器
-


org.springframework.boot
SpringBootStarterWeb
org.springframework
SpringWebMVC
org.springframework.boot
春靴起跑服
com.netflix.hystrix
海斯特里克斯岩芯
${hystrix.version}
com.netflix.hystrix
hystrix度量事件流
${hystrix.version}
org.springframework.cloud
spring cloud starter hystrix仪表板
1.0.2.1发布
org.springframework.boot
弹簧靴起动器执行器
org.springframework.cloud
春云
1.0.2.1发布
测试
com.netflix.archaius
太古菌核
0.6.6
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jersey</artifactId>
</dependency>
<dependency>
    <groupId>com.netflix.hystrix</groupId>
    <artifactId>hystrix-core</artifactId>
    <version>${hystrix.version}</version>
</dependency>
<dependency>
    <groupId>com.netflix.hystrix</groupId>
    <artifactId>hystrix-metrics-event-stream</artifactId>
    <version>${hystrix.version}</version>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
    <version>1.0.2.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-hystrix</artifactId>
    <version>1.0.2.RELEASE</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>com.netflix.archaius</groupId>
    <artifactId>archaius-core</artifactId>
    <version>0.6.6</version>
</dependency>