diff --git a/.idea/misc.xml b/.idea/misc.xml index cc0d554..9dace5d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -20,19 +20,7 @@ - - - - \ No newline at end of file + diff --git a/README.md b/README.md index d603ac3..4a4e267 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # [Spring Boot](https://spring.io/projects/spring-boot) Web Application Example for [bld](https://rife2.com/bld) -Based on the Spring Guides' Spring Boot web application example. Please be sure to read the -[guide](https://spring.io/guides/gs/spring-boot/) for a sampling of how Spring Boot can help -you accelerate application development +Based on the Spring Guides' Spring Boot web application example. Please be sure +to read the [guide](https://spring.io/guides/gs/spring-boot/) for a sampling of +how Spring Boot can help you accelerate application development. ## Compile the Application To compile the web application, issue the following command: -``` +```console ./bld compile ``` @@ -16,19 +16,19 @@ To compile the web application, issue the following command: To run the compiled web application, issue the following command: -``` +```console ./bld run ``` To access the web application, issue the follow command: -``` +```console curl localhost:8080 ``` To access the web application services: -``` +```console curl localhost:8080/actuator/health curl localhost:8080/actuator/info curl -X POST localhost:8080/actuator/shutdown @@ -38,7 +38,7 @@ curl -X POST localhost:8080/actuator/shutdown To run the compiled web application tests, issue the following command: -``` +```console ./bld test ``` @@ -46,7 +46,7 @@ To run the compiled web application tests, issue the following command: To build and launch the executable JAR, issue the following commands: -``` +```console ./bld compile bootjar java -jar build/dist/demoapplication-0.1.0-boot.jar ``` @@ -55,7 +55,7 @@ java -jar build/dist/demoapplication-0.1.0-boot.jar To build and launch the executable WAR, issue the following commands: -``` +```console ./bld compile bootwar java -jar build/dist/demoapplication-0.1.0-boot.war ``` diff --git a/src/bld/java/com/example/springboot/ApplicationBuild.java b/src/bld/java/com/example/springboot/ApplicationBuild.java index e44389a..cc019af 100644 --- a/src/bld/java/com/example/springboot/ApplicationBuild.java +++ b/src/bld/java/com/example/springboot/ApplicationBuild.java @@ -24,15 +24,15 @@ public class ApplicationBuild extends WebProject { repositories = List.of(MAVEN_CENTRAL); scope(compile) - .include(dependency("org.springframework.boot:spring-boot-starter:3.1.5")) - .include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.1.5")) - .include(dependency("org.springframework.boot:spring-boot-starter-web:3.1.5")); + .include(dependency("org.springframework.boot:spring-boot-starter:3.2.0")) + .include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.2.0")) + .include(dependency("org.springframework.boot:spring-boot-starter-web:3.2.0")); scope(test) - .include(dependency("org.springframework.boot:spring-boot-starter-test:3.1.5")) + .include(dependency("org.springframework.boot:spring-boot-starter-test:3.2.0")) .include(dependency("org.junit.jupiter:junit-jupiter:5.10.1")) .include(dependency("org.junit.platform:junit-platform-console-standalone:1.10.1")); scope(standalone) - .include(dependency("org.springframework.boot:spring-boot-loader:3.1.5")); + .include(dependency("org.springframework.boot:spring-boot-loader:3.2.0")); } public static void main(String[] args) {