title: What is the simplest example of Spring OAuth2 with Java configuration?
body: <p>I have recently built a REST API in Spring which I am consuming with a .Net C# client. At the moment there is no security so I would like to implement OAuth2. I am going to be the only user of my REST API so I don't need something complicated. Is there a simple example somewhere of Spring Security OAuth2 with java configuration? I looked in many places but either the examples use xml or they are too old and out of date or simply too complicated for what I need. I would appreciate any pointers with this. </p>
  
  <p>By the way I looked at the Sparklr tutorial and github repo but they seem too complicated for what I need.</p>