title: Working example of Spring OAuth2.0 and JWT in Java with xml configuration
body: <p>I am currently working on a project where I have to implement an Authorization server (java web application) which has to support JSON web token. I would very much like to use the spring support (<strong>spring-security-oauth2</strong>, <strong>spring-security-jwt</strong>) but unfortunately I can't find any example on the net. </p>
  
  <p>If anyone has already implemented it I would very much appreciate if you shared this with me.</p>
  
  <p>I have already looked into cloudfoundry(<a href="https://github.com/cloudfoundry/uaa">https://github.com/cloudfoundry/uaa</a>) but can't find any help there.</p>
  
  <p>Thanks.</p>