title: Use OAuth2 in Spring Security without Spring boot support
body: <p>I built an web application without using Sprint boot support. The front-end is AngularJS. The back-end is Spring MVC restful API. Now I need use OAuth2 and Spring Security configure to protect the resource and authenticate user's credential. </p>
  
  <p>I've spend over 2 days to research how to integrate. But all the examples show the ease of building Spring boot web security project and add OAuth2 dependency (<a href="https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v" rel="noreferrer">here</a> and <a href="http://www.javacodegeeks.com/2015/10/spring-boot-oauth2-security.html" rel="noreferrer">here</a>).</p>
  
  <p>The problem is that my existed project did use Spring Boot. And I'm confusing with ton of oauth2 and spring security configurations.</p>
  
  <p>Please save my days. Thanks all!</p>