diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-05 21:26:30 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-05 21:26:30 +0530 |
| commit | e45f71793ec4911094f2c3e42953e307887b3bff (patch) | |
| tree | 05545d4dacf1aeb8401d21d2bbe83b8eccba7992 /microservices/03-resource-server | |
| parent | 674c675c0bba3b564c841729a274b91518b9e077 (diff) | |
Microservices resource server: Added README file
Diffstat (limited to 'microservices/03-resource-server')
| -rw-r--r-- | microservices/03-resource-server/README | 28 |
1 files changed, 28 insertions, 0 deletions
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): + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-security-oauth2-resource-server</artifactId> + </dependency> + + To use H2 in-memory database (as configured in main/src/resources/application.yaml file): + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <scope>runtime</scope> + </dependency> + + To use H2 database console accessible via a web browser: + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-h2console</artifactId> + </dependency> + +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 |
