From e45f71793ec4911094f2c3e42953e307887b3bff Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 5 Jul 2026 21:26:30 +0530 Subject: Microservices resource server: Added README file --- microservices/03-resource-server/README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 microservices/03-resource-server/README diff --git a/microservices/03-resource-server/README b/microservices/03-resource-server/README new file mode 100644 index 0000000..095e8c5 --- /dev/null +++ b/microservices/03-resource-server/README @@ -0,0 +1,28 @@ +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 -- cgit v1.2.3