Tag: Spring MVC

Spring

Spring MVC @Controller vs @RestController Annotation

Introduction: In this tutorial, we’ll look at the difference between @Controller and @RestController annotations in Spring MVC. The @Controller annotation has been part of the Spring framework from the very beginning. As its name suggests, it defines a controller: an entry-point for a Spring Web application. Spring 4 introduced a @RestController annotation. It is a […]

One comment Read More
Spring

Spring Http Request Logging

Introduction: Logging the Http requests in a web application is a very common requirement. In this tutorial, we’ll learn to log all our incoming Http requests in Spring framework. To follow along with the tutorial, we assume that the reader has an understanding of spring-core and Logback. Using CommonsRequestLoggingFilter: A pretty simple way to log […]

Be the First to comment. Read More