Spring : Method Injection using lookup-method property


Method Injection using lookup-method property Before start jumping into the topic, let me brief about the two important scopes in Spring and how that is working inside the spring container. Singleton scoped beans instances are created only once per container and they are re-used for the multiple requested. Prototype scoped beans instances are created for […]

Spring MVC – component-scan Vs annotation-config Vs annotation-driven


If you are a spring developer then you might have a small confusion about the annotation processing inside spring’s IOC container. Spring MVC framework provides different configuration elements that are helping or instructing the Spring container to effectively manage the beans and inject the beans when required. Some of the XML configurations that are most […]

Spring MVC – Application Context vs Web Application Context


There is lot confusion on Spring context loading techniques. The confusion due to the different context configuration files, the question comes to developers mind is that why would we need two different context configurations files and when these files are loaded by the spring container?. This post summarizes some of the important facts about both […]

Spring Batch Example


Introduction Spring batch is a batch processing framework developed and maintained by the Spring framework team. It is one of the leading and popular batch processing framework in the market. Spring batch uses the chunk oriented processing for performing the batch processing which is more efficient for handling the large volume of data. Spring batch […]

Spring MVC + jQuery Integration Example


This tutorial demonstrates how to integrate Spring MVC and jQuery for developing a web application. This example uses jQuery front end for getting the data from Spring MVC controller. Also the data is used in the text box for the auto completion feature. If you have any questions, please write it in the comments section. […]

Read Only / Write Only Operations using Spring Data Repository Services


As we’ve learned about Spring Data Repository in our previous tutorials, it’s an abstraction layer that built in top of persistent store that leverage the ability of accessing that store for achieving CRUD operations. Spring Data Repository had integrated seamlessly with all of the aspects that might be concerned by a developer, one of those aspect […]

Spring Data Query Methods & Custom Repository Implementation


When you’re developing a Spring Data Repository, you’ll have three options: Using of a CRUD operations that implemented by the Spring Data infrastructure Defining of a query methods and Manually implementing your own custom repositories. In our previous tutorials, we have explained the first option, in that, a vast amount of tutorials had used the […]

Spring Data REST + GemFire + Backbone.js Integration


In my previous tutorial I have explained about Spring Data REST + GemFire + jQuery Integration. This tutorial explains about the integration of Spring Data and Backbone.js integration. Backbone JavaScript framework isn’t like any of the previous frameworks when it comes to the integration. Before getting started writing the integration application, let’s get the basics […]

Spring Data REST + GemFire Repository + Sencha Touch Integration


Spring Data provides you several ways of consuming the REST repositories through a JavaScript frameworks. We have already provided a set of tutorials that discussed about using Spring Data REST with jQuery, AngularJS, Backbone.js and Rest.js. For this tutorial we’re going to explain you how could Sencha Touch be integrated for accessing the services. Sencha Touch, a high-performance HTML5 […]

PrimeFaces + Spring Data using PagingAndSortingRepository Example


In general, Spring Data JPA module implements the Spring Data Commons repository abstraction to ease repository implementations. As well as the Spring Data repository approach allows you to get rid of most of the implementation code by using a plain interface definition. You’ve leveraged repository implementation in your applications by creating an interfaces that extends the […]