Skip to content

Latest commit

 

History

History

demo-spring-boot-3-webmvc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

springdoc-openapi demo with spring-boot-2 web-mvc

Building application

Pre-requisites

  • JDK 8+
  • maven 3
  • docker CLI

Option 1: Building Executable JAR

To create an executable jar, simply run:

 mvn clean package

Option 2: Building a non-native OCI Images

To create a non-native OCI docker image, simply run:

mvn clean spring-boot:build-image

Option 3: Building native image with GraalVM

To create a native image, Run the following command

mvn -Pnative clean native:compile 

Running the native application

To run the demo using docker, invoke the following:

docker run --rm -p 8080:8081 springdoc-openapi-spring-boot-2-webmvc:3.1.6-SNAPSHOT