Git Product home page Git Product logo

spring-webflux-starter's Introduction

Let's go

This project is used to provide a basic skeleton for Spring Webflux application including following features.

  1. Support two database migrations using liquibase and r2dbc.
  2. Support openid connect(oauth2) login flow with custom classes.
  3. Support two database repositories using spring data r2dbc.

Java version >= 21

Here is demo content of application-development.yaml

logging:
  level:
    root: INFO
    org.springframework.r2dbc: DEBUG
    org:
      springframework:
        http:
          server:
            reactive: TRACE

spring:
  security:
    oauth2:
      client:
        registration:
          auth0:
            client-id: xxx
            client-secret: xxx
            client-authentication-method: client_secret_post
            authorization-grant-type: authorization_code
            redirect-uri: "{baseUrl}/login/oauth2/code/{registrationId}"
            scope: "openid,profile,email,offline_access"
            client-name: "Auth0"
        provider:
          auth0:
            issuer-uri: https://xxx.us.auth0.com/

management:
  endpoints:
    enabled-by-default: true
    web:
      exposure:
        include: "*"
cfex-oc:
  session:
    cookie-key: "oc-session"
    max-age-minutes: 480
    effective-minutes: 240
    extending-minutes: 120
  jwt:
    rsa-key-id: "oc"
    rsa-private-key: "xxx"
    rsa-public-key: "xxx"
  crypto:
    password: "XczMo1cLKJLKD(*A5w8hhAeVNQ1ZwOsw6d2zi4764fR0TG0GbTuKttQ=="
    salt: "itgjomQfkvWKJDYb+R6rww=="
  r2dbc:
    contract:
      url: r2dbc:pool:mysql://localhost:3306/contract
      username: xxx
      password: xxx
    gateway:
      url: r2dbc:pool:mysql://localhost:3306/gateway
      username: xxx
      password: xxx
  liquibase:
    contract:
      user: "xxx"
      password: "xxx"
      url: "jdbc:mysql://localhost:3306/contract"
      change-log: "classpath:/db/changelog/contract/master.xml"
    gateway:
      user: "xxx"
      password: "xxx"
      url: "jdbc:mysql://localhost:3306/gateway"
      change-log: "classpath:/db/changelog/gateway/master.xml"

Available Scripts

In the project directory, you can run:

./gradlew bootRun

Runs the app in the development mode.
Service point is http://localhost:4102.

spring-webflux-starter's People

Contributors

mrwd2009 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.