title: Bus Refresh Endpoint not working in spring cloud Finchley.M8
body: <p>Im using Spring cloud config Finchley.M8 version with Spring boot 2.0.0.RELEASE.
  I have noticed the /bus/refresh has been changed to /bus-refresh.
  But whenever I hit the url using post http request, it is not working.
  Here is a snippet of the application.properties:</p>
  
  <pre><code>spring.cloud.bus.enabled=true
  management.endpoints.web.exposure.include=bus-refresh,refresh
  management.endpoints.web.base-path=/
  </code></pre>
  
  <p>Also, I extended the WebSecurityConfigurerAdapter to add the following code snippet:</p>
  
  <pre><code>@Override
  protected void configure(HttpSecurity http) throws Exception {
      http.authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll();
  }
  </code></pre>
  
  <p>And this is the url am trying to test with:</p>
  
  <pre><code>post http://localhost:8000/bus-refresh?destination=**:dev
  </code></pre>
  
  <p>Then I got the following error message</p>
  
  <pre><code>{
  "timestamp": "2018-03-18T07:03:54.135+0000",
  "status": 403,
  "error": "Forbidden",
  "message": "Forbidden",
  "path": "/bus-refresh"
  }
  </code></pre>
  
  <p>Also, here a snippet from the dependencies in pom.xml:</p>
  
  <pre><code>    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;spring-cloud.version&gt;Finchley.M8&lt;/spring-cloud.version&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-config-monitor&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-stream-rabbit&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-bus-amqp&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-config-server&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.rabbitmq&lt;/groupId&gt;
          &lt;artifactId&gt;amqp-client&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security.oauth.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-oauth2-autoconfigure&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.retry&lt;/groupId&gt;
          &lt;artifactId&gt;spring-retry&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.integration&lt;/groupId&gt;
          &lt;artifactId&gt;spring-integration-amqp&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-properties-migrator&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Any help please?</p>
  
  <blockquote>
    <p>Note: I was using older version of spring cloud with spring 1.5.6 and it was working fine, I faced this problem when I migrated to Spring boot 2 with the newest spring cloud version.</p>
  </blockquote>