title: Getting unexpected error (type=Method Not Allowed, status=405) error while access /refresh actuator is not working
body: <p>I created one @RestController class and trying to use /refresh actuator values from config server.
  /refresh actuatoris not working. I am getting below error. Spring boot version is 2.0.0-Release. I can not upgrade spring boot version.</p>
  
  <p><a href="http://localhost:8888/secondservice/admin/refresh" rel="noreferrer">http://localhost:8888/secondservice/admin/refresh</a></p>
  
  <pre><code>    Whitelabel Error Page
      This application has no explicit mapping for /error, so you are seeing this as a fallback.
  
      Thu Jan 23 10:16:10 EST 2020
      ***There was an unexpected error (type=Method Not Allowed, status=405).
      Request method 'GET' not supported***
  </code></pre>
  
  <p>Dependency:-</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-config&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-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Foo.Class</p>
  
  <pre><code>    @RefreshScope
      @RestController
      public class Foo {
  
  
          @Value("${welcome.message}")
          private String personName;
  
          @RequestMapping(value ="/", produces = "application/json", method = RequestMethod.POST)
          public String greet(){
              return "hello " + "POST "+ personName;
          }
  
      }
  </code></pre>
  
  <p>bootstrap.yml</p>
  
  <pre><code>    server:
        port: 8888 
      spring:
        application:
          name: secondservice  
        cloud:
          config:
            uri: http://localhost:8890/configserverdemo
            fail-fast: false
            enabled: true
            server:
              bootstrap: true
      management:
        context-path: /admin
        security:
          enabled: false
        endpoints:
          web:
            exposure:
              include: "*"
        endpoint:
          refresh:
            enabled: true
  </code></pre>