Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Spring Boot Application

This is a simple Spring Boot application demonstrating basic functionality and using Gradle or Maven as the build tool.

Prerequisites

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)

Verify Installations

To verify installations, use the following commands:

Check Java Version

java -version

Check Maven Version

mvn -version

If Java nad Maven are not installed, follow this installation blog.

Check Gradle Version

gradle -version

If not installed, download it from Gradle

Building and Running the Application

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-app

Now, build and run the application using your preferred tool.

With Gradle

Run the following command to build the application.

gradle build

Run the following command to run the application.

gradle run

If you build the application with Gradle, you can find the JAR file inside /build/libs/spring-boot-0.0.1-SNAPSHOT.jar

With Maven

Run the following command to build the application.

mvn clean install

Run the following command to run the application.

mvn spring-boot:run

If you build the application with Maven, you can find the JAR file inside /target/spring-boot-0.0.1-SNAPSHOT.jar

About

Sample Spring Boot Java Application for Learning & Testing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages