Perform the following steps to set up a database as the store for the client details and tokens repository:
- Create the initial project using Spring Initializr as we did for other recipes in this book. Go to https://start.spring.io/ and define the following data:
- Set up the Group as com.packt.example
- Define the Artifact as rdbm-server
- Add Web, JPA, MySQL and Security as dependencies for this project
- After creating the rdbm-server project, import it to your IDE. If using Eclipse, import it as a Maven project.
- Open the pom.xml file and add the following dependencies:
<dependency> <groupId>org.springframework.security.oauth</groupId> <artifactId>spring-security-oauth2</artifactId></dependency>
- Open the application.properties ...