Added support for Spring Boot 3.2.0
This commit is contained in:
parent
fe849c8a59
commit
9f364dfc9a
3 changed files with 16 additions and 28 deletions
12
.idea/misc.xml
generated
12
.idea/misc.xml
generated
|
@ -20,18 +20,6 @@
|
|||
<pattern value="com.example.springboot.ApplicationBuild" method="bootjar" />
|
||||
<pattern value="com.example.springboot.ApplicationBuild" method="bootwar" />
|
||||
</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">
|
||||
<output url="file://$PROJECT_DIR$/build" />
|
||||
</component>
|
||||
|
|
20
README.md
20
README.md
|
@ -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)
|
||||
|
||||
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
|
||||
```
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue