Added support for Spring Boot 3.2.0

This commit is contained in:
Erik C. Thauvin 2023-12-14 22:02:16 -08:00
parent fe849c8a59
commit 9f364dfc9a
3 changed files with 16 additions and 28 deletions

14
.idea/misc.xml generated
View file

@ -20,19 +20,7 @@
<pattern value="com.example.springboot.ApplicationBuild" method="bootjar" /> <pattern value="com.example.springboot.ApplicationBuild" method="bootjar" />
<pattern value="com.example.springboot.ApplicationBuild" method="bootwar" /> <pattern value="com.example.springboot.ApplicationBuild" method="bootwar" />
</component> </component>
<component name="PDMPlugin">
<option name="customRuleSets">
<list>
<option value="K:\java\semver\config\pmd.xml" />
<option value="$PROJECT_DIR$/../bld-exec/config/pmd.xml" />
<option value="$PROJECT_DIR$/../bld-jacoco-report/config/pmd.xml" />
<option value="$PROJECT_DIR$/../bld-checkstyle/config/pmd.xml" />
<option value="$PROJECT_DIR$/../bld-testng/config/pmd.xml" />
</list>
</option>
<option name="skipTestSources" value="false" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build" /> <output url="file://$PROJECT_DIR$/build" />
</component> </component>
</project> </project>

View file

@ -1,14 +1,14 @@
# [Spring Boot](https://spring.io/projects/spring-boot) Web Application Example for [b<span style="color:orange">l</span>d](https://rife2.com/bld) # [Spring Boot](https://spring.io/projects/spring-boot) Web Application Example for [b<span style="color:orange">l</span>d](https://rife2.com/bld)
Based on the Spring Guides' Spring Boot web application example. Please be sure to read the Based on the Spring Guides' Spring Boot web application example. Please be sure
[guide](https://spring.io/guides/gs/spring-boot/) for a sampling of how Spring Boot can help to read the [guide](https://spring.io/guides/gs/spring-boot/) for a sampling of
you accelerate application development how Spring Boot can help you accelerate application development.
## Compile the Application ## Compile the Application
To compile the web application, issue the following command: To compile the web application, issue the following command:
``` ```console
./bld compile ./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: To run the compiled web application, issue the following command:
``` ```console
./bld run ./bld run
``` ```
To access the web application, issue the follow command: To access the web application, issue the follow command:
``` ```console
curl localhost:8080 curl localhost:8080
``` ```
To access the web application services: To access the web application services:
``` ```console
curl localhost:8080/actuator/health curl localhost:8080/actuator/health
curl localhost:8080/actuator/info curl localhost:8080/actuator/info
curl -X POST localhost:8080/actuator/shutdown 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: To run the compiled web application tests, issue the following command:
``` ```console
./bld test ./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: To build and launch the executable JAR, issue the following commands:
``` ```console
./bld compile bootjar ./bld compile bootjar
java -jar build/dist/demoapplication-0.1.0-boot.jar 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: To build and launch the executable WAR, issue the following commands:
``` ```console
./bld compile bootwar ./bld compile bootwar
java -jar build/dist/demoapplication-0.1.0-boot.war java -jar build/dist/demoapplication-0.1.0-boot.war
``` ```

View file

@ -24,15 +24,15 @@ public class ApplicationBuild extends WebProject {
repositories = List.of(MAVEN_CENTRAL); repositories = List.of(MAVEN_CENTRAL);
scope(compile) scope(compile)
.include(dependency("org.springframework.boot:spring-boot-starter:3.1.5")) .include(dependency("org.springframework.boot:spring-boot-starter:3.2.0"))
.include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.1.5")) .include(dependency("org.springframework.boot:spring-boot-starter-actuator:3.2.0"))
.include(dependency("org.springframework.boot:spring-boot-starter-web:3.1.5")); .include(dependency("org.springframework.boot:spring-boot-starter-web:3.2.0"));
scope(test) 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.jupiter:junit-jupiter:5.10.1"))
.include(dependency("org.junit.platform:junit-platform-console-standalone:1.10.1")); .include(dependency("org.junit.platform:junit-platform-console-standalone:1.10.1"));
scope(standalone) 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) { public static void main(String[] args) {