RestTemplate in Spring

Overview RestTemplate reduces boilerplate code and enforces RESTful principles. In this post, we will discuss different ways in which we can use RestTemplate GET call Get entry point has two methods POST call Post entry point has the following methods Exchange call Exchange entry point gives a more generic way Read more…

Jackson JSON infinite recursion problem

Overview In this blog, we will cover a very common issue that causes the Infinity loop aka (Jackson JSON infinite recursion) when using @ManyToOne and @OneToMany relation between entities and how we can resolve them. Sample Code being used Error ERROR 26260 — [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] Read more…

Bean Scope in Spring

Overview When defining a <bean> you have the option of declaring scope for that bean In this blog we will cover What are different types of Scope available in Spring.. Example for each scope type Types of Scope Scope Description singleton Scopes a single bean definition to a single object Read more…

Spring – An Overview

Overview Spring is a framework for dependency-injection which is a pattern that allows to build very decoupled systems. The Spring Framework is divided into modules. Applications can choose which modules they need. At the heart are the modules of the core container, including a configuration model and a dependency injection Read more…