/spring-boot-mvc-http-logging

Example of HTTP traffic logging

Primary LanguageJava

spring-boot-mvc-http-logging

Example of Spring MVC RestControllers and RestTemplates HTTP traffic logging, with tests configured as Spring WebMvcTest and integration test configured to run on deployed application on Tomcat 8 using cargo plugin, and tested with REST-assured.

Logs can be found in tomcat /logs/logFile.log and in /target/cargo-tomcat-logs/container.log

How to run

As standard spring-boot app:

mvn clean install spring-boot:run

For war deployment using cargo with tomcat8x container, use:

mvn clean install cargo:run