This is a simple Spring Boot application demonstrating basic functionality and using Gradle or Maven as the build tool.
Before building and running the application, ensure you have the following installed:
- Java Development Kit (JDK): Version 17 or higher
- Gradle: Version 8.0 or higher (if your are using Gradle)
- Maven: Version 3.6 or higher (if your are using Maven)
To verify installations, use the following commands:
java -versionmvn -versionIf Java nad Maven are not installed, follow this installation blog.
gradle -versionIf not installed, download it from Gradle
You can build and run this application using Gradle or Maven. Choose your preferred method below.
First, clone the repository and go to the repositories root directory using the following commands.
git clone https://github.com/techiescamp/java-app.git
cd java-appNow, build and run the application using your preferred tool.
Run the following command to build the application.
gradle buildRun the following command to run the application.
gradle runIf you build the application with Gradle, you can find the JAR file inside /build/libs/spring-boot-0.0.1-SNAPSHOT.jar
Run the following command to build the application.
mvn clean installRun the following command to run the application.
mvn spring-boot:runIf you build the application with Maven, you can find the JAR file inside /target/spring-boot-0.0.1-SNAPSHOT.jar