/spring-boot-starter

Spring Boot Starter - Resource Server

Primary LanguageJava

Spring Boot Starter

  • Spring boot microservice template
  • This can be used as resources server

Tech stack

  • Java 17+ JDK
  • Git
  • Docker / Docker-compose
  • Maven
  • Junit5 / Mockito
  • Postgres
  • JPA
  • Swagger
  • Actuator
  • Flyway / LiquidBase
  • Spring Boot 3.1+
  • Spring Security
  • Kubernetes

Maven Dependencies

  • used custom dependency to centralize all the libraries and class etc.
<dependency>
    <groupId>com.quinsic.foundation</groupId>
    <artifactId>app-core</artifactId>
    <version>${app-core}</version>
</dependency>

Pre-requisite

  • configure your Users/${user}/.m2/settings.xml img.png
  • put down your GitLab/GitHub accessToken img.png
  • Docker running mysql image
  • go and see docker-compose in cd ~/.setup

Testing

Design Principle

Directories structure

  • config
  • endpoint
  • entity
    • dto
    • po
  • exception
  • repository
  • service
  • usecase optional

Oauth2 - Resources Server

Spring Security 5.1 Resource Server only supports JWK-signed JWTs as authorization

spring:
  security:
    oauth2:
      resourceserver:
        jwk-set-uri: http://localhost:8081/sso-auth-server/.well-known/jwks.json