Skip to content

choiis/Spring-WebServer-Oracle

Repository files navigation

Spring-WebServer-Oracle

  • It is a practice project for studying Spring Boot and Oracle DB.

Tools

  • Java Spring Oracle

Prepare project environment

  • Execute Oracle DB and Minio S3 with docker
docker-compose up

Execution

./gradlew bootRun

Default port: http://localhost:8090

Authentication Flow

1) Login

  • POST /api/auth/login
  • Request Body:
{
"username": "admin",
"password": "admin1234"
}

Or the userid/passwd combination from the SM01 table in the DB (in production)

  • Response:
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

2) Protected API Calls

Add the JWT to the HTTP header for all protected API calls, as follows:

Authorization: Bearer {accessToken}

Swagger

  • Swagger UI: http://localhost:8090/swagger-ui/index.html
  • OpenAPI: http://localhost:8090/v3/api-docs

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages