USA

What is Spring Boot?

For a quick start click here.

To begin the project click here.

The following screen may be used to begin a new spring project.


The following depicts the rdemo directory after extraction.

.
├── build.gradle
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── HELP.md
├── settings.gradle
└── src
    ├── main
    │   ├── java
    │   │   └── com
    │   │       └── example
    │   │           └── demo
    │   │               └── DemoApplication.java
    │   └── resources
    │       ├── application.properties
    │       ├── static
    │       └── templates
    └── test
        └── java
            └── com
                └── example
                    └── demo
                        └── DemoApplicationTests.java

17 directories, 10 files

Here is the project in Visual Studio Code.

The source code for this project can be reviewed by clicking here.

The command ./gradlew bootRun is used in a Gradle-based project to build and run a Spring Boot application.

Explanation:

  • ./gradlew: This invokes the Gradle wrapper script, which ensures that the correct version of Gradle is used. The wrapper is included in the project, so users don’t need to install Gradle manually.
    • ./gradlew is for Unix-like systems (Linux, macOS).
    • Use gradlew.bat for Windows.
  • bootRun: This is a Gradle task provided by the Spring Boot plugin. It:
    • Compiles the code.
    • Resolves dependencies.
    • Starts the Spring Boot application using the main class specified in the project configuration.

Use Case:

This command is typically run from the root directory of the project to quickly start the Spring Boot application for development or testing purposes.

At this juncture we are in position to develop this application further.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Page dynamically generated on

Brooks Computing Systems, LLC
Quality, Reliability & Service