Skip to content

vijaypatidar/spring-webflux-demo

Repository files navigation

Spring Webflux

Build

Swagger UI

https://localhost:8080/swagger-ui.html

Configure SSL to enable secure communication by allowing traffic on the HTTPS protocol instead of HTTP.

  1. Generate certificate(*.jks file)
keytool -genkeypair -keyalg RSA -keystore keystore.jks
  1. Setup spring webflux config to use this file(application.yaml or .properties)
server:
  port: ${PORT:8080}
  ssl:
    key-store: classpath:keystore.jks
    key-store-password: changeme
  1. Once these two steps are done successfully, the spring webflux will start the server with configured port but this time it will use the https protocol.
https://localhost:8080

Create separate dir for integration test

  1. Create folder under src
--src
  |--main
  |--test
  |--integrationTest
  1. Now update build.gradle
sourceSets {
    integrationTest {
        java.srcDir file("src/integrationTest/java")
        resources.srcDir file("src/integrationTest/resources")
        runtimeClasspath += sourceSets.main.runtimeClasspath + sourceSets.test.runtimeClasspath
        compileClasspath += sourceSets.main.compileClasspath + sourceSets.test.compileClasspath
    }
}

Build docker image with JIB

  ./gradlew jibDockerBuild

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages