2016-07-21 46 views
0

Hy,Jhipster Microservice和Hystrix

我用Jhipster創建了一個微服務,我想添加hystrix,但是我遇到了問題。 我在我的*** ServiceApp.java上有@EnableHystrix,而在方法(@RequestMapping)上有@HystrixCommand。 但是,當我想在http://localhost:8081/hystrix.stream訪問(這是個好口),我這個頁面 「您的請求無法處理」

我不它是從哪裏來的,安全問題都知道,但我不能成功解決...

感謝您的幫助。 對不起我的英文不好

回答

1

Jhipster套默認驅動器屬性management.context路徑爲/管理
所以你錐流應該可以在http://localhost:8081/management/hystrix.stream

+0

我有同樣的問題以http:// localhost:8081/management/hystrix.stream,我還在Microsoft服務安全配置中添加了這一行:.antMatchers(「/ management/**」)。permitAll() – Samshay