title: How to disable default Spring OAuth2 REST APIs?
body: <p>We use the following version of spring-security-oauth2:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security.oauth&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-oauth2&lt;/artifactId&gt;
          &lt;version&gt;2.0.11.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When enabling the authorizationserver and configuring it, the framework enables default APIs like "/oauth/check_token" or "/oauth/token_key".</p>
  
  <p>I don´t use these APIs (except "oauth/token") and want to disable them to prevent misusage. Currently I am overriding the mapping of these urls as a workaround. I tried to use an exclude filter on component scan, but it had no effect. Is there a more convenient way to disable those APIs?</p>