Skip to content

codspire/spring-boot-greetings-app

Repository files navigation

Simple Spring Boot Greetings App Using Gradle Multi Project

Build

./gradlew clean build

Run

java -jar services/hello-service/build/libs/hello-service-0.0.1-SNAPSHOT.jar

Test 1: Endpoint Without Parameter

curl -sb -H http://localhost:8090/greeting/v1/hello 

Output

{"message":"Hello","responseTime":1508616187061}

Test 2: Endpoint With Parameter

curl -sb -H http://localhost:8090greeting/v1/hello/rakesh 

Output

{"message":"Hello Rakesh","responseTime":1508616314648}

Actuator Endpoints

http://localhost:8091/beans
http://localhost:8091/metrics
http://localhost:8091/info

More Details: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html

Releases

No releases published

Packages

No packages published

Languages