title: How to disable authorization for /restart endpoint?
body: <p>I try to implement restart feature in my web application.</p>
  
  <p>I've added following dependencies:</p>
  
  <pre><code>compile("org.springframework.boot:spring-boot-starter-actuator")
  compile("org.springframework.cloud:spring-cloud-starter:1.2.4.RELEASE")
  </code></pre>
  
  <p>In start logs I found that post /restart was registered.</p>
  
  <p>I decided to request this url:</p>
  
  <p><a href="https://i.stack.imgur.com/kT1r1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kT1r1.jpg" alt="enter image description here"></a></p>
  
  <p>But result is fail. I understand that this url should be protected but I have custom authorization/authentication mechanism and I don't have rights to change it.</p>
  
  <p>Is there way to disable protection for this url? A better way - to have service which I can inject inside my controller and invoke. Is there something inside the spring to solve my problem?</p>