Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepaksorthiya/spring-boot-3-microservice
Spring Boot 3 JDK17 Microservice Example
https://github.com/deepaksorthiya/spring-boot-3-microservice
java microservice oauth2 openid-connect spring-boot
Last synced: 22 days ago
JSON representation
Spring Boot 3 JDK17 Microservice Example
- Host: GitHub
- URL: https://github.com/deepaksorthiya/spring-boot-3-microservice
- Owner: deepaksorthiya
- Created: 2023-10-07T17:27:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-06T17:02:58.000Z (4 months ago)
- Last Synced: 2024-09-06T20:17:16.418Z (4 months ago)
- Topics: java, microservice, oauth2, openid-connect, spring-boot
- Language: Java
- Homepage: https://github.com/deepaksorthiya/spring-boot-3-microservice
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-3-cloud-microservices
Clone this repository:
```bash
git clone https://github.com/deepaksorthiya/spring-boot-3-microservice.git
cd spring-boot-3-microservice
```Start Docker:
```bash
docker compose up
```This will get a copy of the project installed locally. Open the project in your IDE and in **spring-cloud-configuration-service** update `src/main/resources/application.properties` with the following key-value pairs:
```properties
server.port=8888
spring.cloud.config.server.native.search-locations=/path/to/config/folder
```The property `spring.cloud.config.server.native.search-locations` is the location where you store your configuration files. **Replace the value with a folder on your filesystem where these files will be saved.** For example, `file://${user.home}/config`.
Normally your configuration files would be stored in a remote location, for example, a GitHub repository or an Amazon S3 bucket. For instructions on how to store your config files in a git repository, see [this section in the Spring Cloud Config documentation](https://cloud.spring.io/spring-cloud-config/reference/html/#_git_backend). To keep this tutorial simple, you will use the "native" filesystem option above.
Start All Services In Given Order
1. spring-cloud-configuration-service
2. spring-cloud-netflix-discovery-service
3. spring-cloud-gateway-serviceAfter this start remaining microservices.
```bash
mvn spring-boot:run
```import postman collection from `postman` folder to your postman application for testing APIs.