40 lines
969 B
Markdown
40 lines
969 B
Markdown
# Spring Boot Hello World
|
|
|
|
A spring boot enabled hello world application
|
|
|
|
[](https://travis-ci.org/gazgeek/springboot-helloworld)
|
|
|
|
[](https://coveralls.io/r/gazgeek/springboot-helloworld)
|
|
|
|
- Travis CI build and test
|
|
- Continuous deployment to Heroku on success
|
|
|
|
## Usage
|
|
|
|
- Directly using maven
|
|
```
|
|
mvn spring-boot:run
|
|
```
|
|
|
|
- From within your IDE right click run
|
|
```
|
|
Application.java
|
|
```
|
|
|
|
- From executable jar file
|
|
```
|
|
mvn clean install
|
|
java -jar target/helloworld-0.0.1-SNAPSHOT.jar
|
|
```
|
|
|
|
- To run this as a docker application (assumption docker is installed on your machine)
|
|
```
|
|
docker pull gazgeek/springboot-helloworld
|
|
docker container run -p 8080:8080 -d gazgeek/springboot-helloworld
|
|
|
|
Go to Browser and type http://localhost:8080/ or do curl http://localhost:8080/ on command prompt
|
|
```
|
|
|
|
|
|
|