sudo yum install java-17-amazon-corretto
Please refer to this link to choose your version of JDK.
mvn clean install -DskipTests
Now, we again upload file Jar into EC2 and run our application
To run application, we enter this command:
java -jar restaurantmanagement-0.0.1-SNAPSHOT.jar
After run application:
Here we use postman to test API of our application