In this demo project i am trying to cover Spring-Security-Oauth2 for Rest service and as well as for Web application also. Thymeleaf is used of view layer abd Spring Data is for Database repository