Java Microservices with Spring Boot and Spring Cloud

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • auth0-java-microservices-examples

    Java Microservice Examples

  • You can find all the code shown in this tutorial on GitHub in the @oktadev/auth0-java-microservices-examples repository. The OpenFeign example with Spring MVC is in the spring-boot-gateway-mvc directory. The Spring Cloud Gateway with WebFlux is in spring-boot-gateway-webflux. The Keycloak example is in the keycloak branch.

  • spring-dotenv

    Provides a Dotenv property source for Spring

  • At startup, these properties will be read using spring-dotenv.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • JHipster

    JHipster, much like Spring initializr, is a generator to create a boilerplate backend application, but also with an integrated front end implementation in React, Vue or Angular. In their own words, it "Is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures."

  • An easy way to get a pre-configured Keycloak instance is to use JHipster's jhipster-sample-app-oauth2 application. It gets updated with every JHipster release. You can clone it with the following command:

  • Okta Spring Boot Starter

    Okta Spring Boot Starter

  • Okta also now has an Okta Spring Boot starter. I didn't use it in my first experiment, but I'm a big fan of it after the last few years! It dramatically simplifies configuration and makes securing your apps with OAuth 2.0 and OIDC easy. It's a thin wrapper around Spring Security's resource server, OAuth client, and OIDC features. Not only that, but it works with Okta Workforce Identity, Okta Customer Identity (aka Auth0), and even Keycloak.

  • initializr

    A quickstart generator for Spring projects

  • I created all of these applications using start.spring.io's REST API and HTTPie.

  • spring-cloud-gateway

    An API Gateway built on Spring Framework and Spring Boot providing routing and more.

  • Spring Cloud Gateway MVC 2023.0.0 doesn't allow you to configure a TokenRelay filter in YAML, so I added a RouterFunction bean to add it.

  • SDKMan

    The SDKMAN! Command Line Interface

  • To run the example, you must install the Auth0 CLI and create an Auth0 account. If you don't have an Auth0 account, sign up for free. I recommend using SDKMAN! to install Java 17+ and HTTPie for making HTTP requests.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • jhipster-sample-app-oauth2

    This is a sample application created with JHipster, with the OAuth2 option

  • git clone https://github.com/jhipster/jhipster-sample-app-oauth2.git --depth=1 cd jhipster-sample-app-oauth2

  • frank_jwt

    JSON Web Token implementation in Rust.

  • You can see the access token's contents by copying/pasting it into jwt.io. You can also access the car service directly using it.

  • auth0-jhipster-k8s-eks-microservices-example

    A microservice sample application configured to use Auth0 for OIDC and Terraform scripts to deploy to AWS EKS

  • Deploy Secure Spring Boot Microservices on Amazon EKS Using Terraform and Kubernetes

  • auth0-spring-boot-angular-crud-example

    Angular and Spring Boot CRUD Example

  • Build a Beautiful CRUD App with Spring Boot and Angular

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts