Home » Tag Archives: Spring (page 26)

Tag Archives: Spring

Spring MVC: Validator and @InitBinder

spring-interview-questions-answers

It’s hard to imagine a web-application which doesn’t has some validation logic for an user data. Almost all user’s data has some constraints, e.g. date of birth should consist of day, month, year etc. Spring MVC has its own solution for the data validation, and it’s become available with the help of Validator interface. Usage of Spring MVC Validator A ...

Read More »

Invoking Async method call using Future object in Spring

spring-interview-questions-answers

The next example will demonstrate an async method call inside the Spring container. Why do we need async method calls? In some cases we don’t really know if replay is expected or when a result supposed to be delivered back. Traditional way In the Java EE world of handling async calls is using Queue/Topic. We could do the same in ...

Read More »

Aggregating async results using Spring Integration

spring-interview-questions-answers

Hi, I came across an issue which has very nice solution using Spring Integration. Many times we have the need for a scenario of dispatching a message to unknown number of destinations. For this purpose we have the Topic methodology. But some times in addition we also want to receive answers from all destinations which received the message and aggregate ...

Read More »

Testing Spring “session” scope

spring-interview-questions-answers

In a Spring based Web application, beans can be scoped to the user “session”. This essentially means that state changes to the session scoped bean are only visible in the scope of the user session. The purpose of this entry is to simply highlight a way provided by Spring Test MVC to test components which have session scoped beans as ...

Read More »

Spring Data Solr Tutorial: Pagination

apache-solr-logo

In the earlier parts of my Spring Data Solr tutorial, we have implemented a simple search function which is used to search the information of todo entries. The current implementation of our search function shows all search results in a single page. This is not a viable solution for most real life applications because the number of search results can ...

Read More »

Spring Data Solr Tutorial: Sorting

apache-solr-logo

When we are implementing a word search function, we typically want to sort the search results in descending order by using the relevancy of each search result. This is also the default behaviour of Solr. However, there are situations when it makes to sense to specify the sort order manually. One such situation is an implementation of a “regular” search ...

Read More »

Spring Data Solr Tutorial: Dynamic Queries

apache-solr-logo

Solr is often referred as a search server which we can use when we are implementing full-text search functions. However, it is often wise to leverage the performance of Solr when we are implementing a search function which takes its input from a search form. In this scenario, the executed search query depends from the received input. This means that ...

Read More »

Spring JPA Data + Hibernate + MySQL + Maven

spring-data-logo

Development of web-applications with the help of Spring MVC implies creation of several logical layers of architecture. One of the layers is a DAO (Repository) layer. It is responsible for communication with a database. If you developed the DAO layer at least once, you should know that it involves a lot of boilerplate code. A Spring Data take a part ...

Read More »

Spring Integration key notes with real life scenarios

spring-interview-questions-answers

This post will summarize Spring Integration (SI) important key notes together with messaging Integration patterns. For each key note I will add a real life example based on my experience. Splitter a. What it does? The Splitter is actually a pattern which receives one message in one point and split it into several. b. Why is it good for me? The Splitter can be used ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close