Skip to content

ptabasso2/springbootjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-json

A simple Spring Boot application example using json as a logging format. This example is based on logback which is the default logging mechanism used with Spring Boot.

Preliminary tasks

Building the the spring application

COMP10619:springbootjson pejman.tabassomi$ ./gradlew build

Run the application

COMP10619:springbootjson pejman.tabassomi$ java -jar build/libs/springbootjson.jar

Before running the application, make sure that port 8080 is not already in use.
If that is the case you will want to change the port used by the application
using the --server.port option and set any open port as follows:

COMP10619:springbootjson pejman.tabassomi$ java -jar build/libs/springbootjson.jar --server.port=8082

Run the tests

Open a new terminal window and run the following curl command multiple times:

COMP10619:springbootjson pejman.tabassomi$ curl localhost:8080/test
test

About

Spring Boot json logging example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages