Spring Boot Example Web Application for bld https://github.com/rife2/spring-boot-bld-example
Find a file
2025-03-28 12:59:46 -07:00
.github/workflows Fix incorrect working dir 2025-03-25 21:29:34 -07:00
.idea Bump bld to version 2.2.1 2025-02-25 10:13:04 -08:00
.vscode Bump bld to version 2.2.1 2025-02-25 10:13:04 -08:00
lib/bld Bump Spring Boot extension from 1.0.2 to 1.0.3 2025-03-28 12:59:46 -07:00
src Bump to Spring Boot version 3.4.4 2025-03-20 21:11:07 -07:00
.gitignore Initial commit 2023-10-22 18:32:14 -07:00
bld Reworked to use the Spring Guides' Spring Boot web application example 2023-10-22 22:06:49 -07:00
bld.bat Reworked to use the Spring Guides' Spring Boot web application example 2023-10-22 22:06:49 -07:00
LICENSE.txt Added license 2023-10-30 15:37:14 -07:00
README.md Added reference to the Sprint Boot extension 2024-06-22 16:14:30 -07:00

Spring Boot Web Application Example for bld

Based on the Spring Guides' Spring Boot web application example. Please be sure to read the guide for a sampling of how Spring Boot can help you accelerate application development.

This template is using the Spring Boot Helper Extension for bld.

Compile the Application

To compile the web application, issue the following command:

./bld compile

Running the Application

To run the compiled web application, issue the following command:

./bld run

To access the web application, issue the follow command:

curl localhost:8080

To access the web application services:

curl localhost:8080/actuator/health
curl localhost:8080/actuator/info
curl -X POST localhost:8080/actuator/shutdown

Testing the Application

To run the compiled web application tests, issue the following command:

./bld test

Creating and launching the executable Java Archive (JAR)

To build and launch the executable JAR, issue the following commands:

./bld compile bootjar
java -jar build/dist/demoapplication-0.1.0-boot.jar

Creating and launching the executable Web Archive (WAR)

To build and launch the executable WAR, issue the following commands:

./bld compile bootwar
java -jar build/dist/demoapplication-0.1.0-boot.war