Compare commits
No commits in common. "e6ba80aa22f5e7f6609d795813cb11dc40b14d4b" and "07dac7c451225fdf80a86d1831777ce9873393d6" have entirely different histories.
e6ba80aa22
...
07dac7c451
2 changed files with 3 additions and 41 deletions
34
README.md
34
README.md
|
@ -1,34 +0,0 @@
|
||||||
# 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.WebProject;
|
import rife.bld.BaseProject;
|
||||||
|
|
||||||
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 WebProject {
|
public class ApplicationBuild extends BaseProject {
|
||||||
public ApplicationBuild() {
|
public ApplicationBuild() {
|
||||||
pkg = "com.example.demo";
|
pkg = "com.example.demo";
|
||||||
name = "DemoApplication";
|
name = "DemoApplication";
|
||||||
|
@ -28,11 +28,7 @@ public class ApplicationBuild extends WebProject {
|
||||||
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