https://localhost:8080/swagger-ui.html
Configure SSL to enable secure communication by allowing traffic on the HTTPS protocol instead of HTTP.
- Generate certificate(*.jks file)
keytool -genkeypair -keyalg RSA -keystore keystore.jks
- 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
- 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 folder under src
--src
|--main
|--test
|--integrationTest
- 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
}
}
./gradlew jibDockerBuild