I have created Graphql application with Spring Boot Webflux. I am pretty new to this. Can some one please tell me the process of deployment of same. I know about traditional tomcat deployment but i read that using that, it removes of the features.
There are two ways you could deploy a spring-boot application.
To generate an executable JAR we could either use spring-boot maven plugin or spring-boot gradle plugin depending on your use case.
pom.xml
.<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
mvn clean package spring-boot:repackage
java -jar <path-to-generated-jar>/<app-name>.jar
./gradlew bootJar
java -jar <path-to-generated-jar>/<app-name>.jar