- Install Java 20, Gradle, MYSQL.
- Create a MYSQL user and password.
- Create a MYSQL database.
- In
src/main/resources/application.properties, add the following lines of code:spring.datasource.url=jdbc:mysql://localhost:3306/databasename spring.datasource.username=user spring.datasource.password=password spring.jpa.hibernate.ddl-auto=update server.port=8080 - Replace
databasename,userandpasswordwith appropriate values. - Run the app using
./gradlew bootRun.
- All requests to the endpoints are made with valid inputs.