Spring Data Solr – Index and Find Documents

In today’s post I would share a sample program to index and find documents into/from Apache Lucene Solr using Spring Data Solr. If you don’t have Solr in your local machine please download and install Solr from official site. This program is tested against the Solr server running in localhost and in default port. (http://localhost:8983/solr/) [...]
Continue reading…

 

Spring Data Mongo Pagination

In today’s post I would give you a sample program which loads data from MongoDb using Spring Data as page by page. This is useful when you load large data set into screen. The complete source code of this post can be found github. Libraries Use pom.xml

ProductRepository Source Code

Product Domain Object [...]
Continue reading…

 

Spring IOC Hello World Example.

Today we will share a simple Spring 3 inversion of control hello world example program. What is Inversion of Control (IOC) or Dependency Injection (DI)? Inversion of control or dependency injection is an object oriented programming technique, in which the object coupling is done at runtime instead of compile time. The responsibility of creating, injecting [...]
Continue reading…