This project exposes REST endpoints (accessed by API gateway) and the endpoints are secured by OAuth2.
Some pom.xml dependencies:
To make this Spring Boot project an OAuth2 resource server (Allow access from OAuth2 clients):
org.springframework.boot
spring-boot-starter-security-oauth2-resource-server
To use H2 in-memory database (as configured in main/src/resources/application.yaml file):
com.h2database
h2
runtime
To use H2 database console accessible via a web browser:
org.springframework.boot
spring-boot-h2console
How to access the H2 database console:
URL: http://localhost:8052/myservices/h2-console
Details (as configured in application.yaml file):
Database name: jdbc:h2:mem:testdb
Username: sa
Password: password