Compare commits
2 commits
07dac7c451
...
e6ba80aa22
Author | SHA1 | Date | |
---|---|---|---|
e6ba80aa22 | |||
081b8ef559 |
2 changed files with 41 additions and 3 deletions
34
README.md
Normal file
34
README.md
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# RIFE2 Spring Boot Example
|
||||||
|
|
||||||
|
Based on the Spring Guides' [Sping Boot](https://github.com/spring-guides/gs-spring-boot) web application example.
|
||||||
|
|
||||||
|
## Run the Application
|
||||||
|
|
||||||
|
To run the 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:8880/
|
||||||
|
curl localhost:8080/actuator/health
|
||||||
|
curl localhost:8080/actuator/info
|
||||||
|
curl localhost:8080/actuator/shutdown
|
||||||
|
```
|
||||||
|
|
||||||
|
## Test the Application
|
||||||
|
|
||||||
|
To run the web application tests, issue the following command:
|
||||||
|
|
||||||
|
```
|
||||||
|
./bld test
|
||||||
|
```
|
|
@ -1,6 +1,6 @@
|
||||||
package com.example.springboot;
|
package com.example.springboot;
|
||||||
|
|
||||||
import rife.bld.BaseProject;
|
import rife.bld.WebProject;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import static rife.bld.dependencies.Repository.MAVEN_CENTRAL;
|
||||||
import static rife.bld.dependencies.Scope.compile;
|
import static rife.bld.dependencies.Scope.compile;
|
||||||
import static rife.bld.dependencies.Scope.test;
|
import static rife.bld.dependencies.Scope.test;
|
||||||
|
|
||||||
public class ApplicationBuild extends BaseProject {
|
public class ApplicationBuild extends WebProject {
|
||||||
public ApplicationBuild() {
|
public ApplicationBuild() {
|
||||||
pkg = "com.example.demo";
|
pkg = "com.example.demo";
|
||||||
name = "DemoApplication";
|
name = "DemoApplication";
|
||||||
|
@ -28,7 +28,11 @@ public class ApplicationBuild extends BaseProject {
|
||||||
version(3, 1, 5)));
|
version(3, 1, 5)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.springframework.boot", "spring-boot-starter-test",
|
.include(dependency("org.springframework.boot", "spring-boot-starter-test",
|
||||||
version(3, 1, 5)));
|
version(3, 1, 5)))
|
||||||
|
.include(dependency("org.junit.jupiter", "junit-jupiter",
|
||||||
|
version(5, 10, 0)))
|
||||||
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone",
|
||||||
|
version(1, 10, 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue