2017-02-22 10 views

答えて

1

まず第一に、あなたが管理エンドポイントのセキュリティを有効にする必要があります。

management.security.enabled = true 

次は、他のエンドポイントのために行うあなたのようhystrix.streamへのアクセス権を設定することができます。

@Configuration 
public class SecurityConfig extends WebSecurityConfigurerAdapter { 

    @Override 
    public void configure(HttpSecurity http) throws Exception { 
     http 
      .antMatcher("/**") 
       .authorizeRequests() 
      .antMatchers("/hystrix.stream") 
       .authenticated(); // or whatever you like in here 
      // rest of your security config 
    } 

} 
関連する問題