Home » Tag Archives: Spring (page 11)

Tag Archives: Spring

Spring Rest Controller with angularjs resource

spring-interview-questions-answers

Angularjs ngResource is an angularjs module for interacting with REST based services. I used it recently for a small project with Spring MVC and wanted to document a configuration that worked well for me. The controller is run of the mill, it supports CRUD operations on a Hotel entity and supports the following methods:           POST ...

Read More »

Adding C3PO Connection Pooling in Spring JDBC

spring-interview-questions-answers

Connection pooling is an operation in which a system pre-initializes the connections to be used in the future. This is done since creating connections at the time of use is an expensive operation. In this post we will learn how we can create C3P0 connection pooling in Spring JDBC (somebody is not using hibernate).             ...

Read More »

Spring Integration 4.0: A complete XML-free example

spring-interview-questions-answers

1. Introduction Spring Integration 4.0 is finally here, and this release comes with very nice features. The one covered in this article is the possibility to configure an integration flow without using XML at all. Those people that don’t like XML will be able to develop an integration application with just using JavaConfig. This article is divided in the following ...

Read More »

Spring Java Configuration: Session timeout

spring-interview-questions-answers

We live in a nice time, when you can develop a Spring application using java based configuration. No redundant XML code any more, just pure java code. In this article I want to discuss a popular topic about session management in Spring applications. If to be more precise I’m going to talk about a session timeout in java configuration style. ...

Read More »

Tracking Exceptions – Part 6 – Building an Executable Jar

apache-maven-logo

If you’ve read the previous five blogs in this series, you’ll know that I’ve been building a Spring application that runs periodically to check a whole bunch of error logs for exceptions and then email you the results. Having written the code and the tests, and being fairly certain it’ll work the next and final step is to package the ...

Read More »

Spring MVC and Thymeleaf: how to acess data from templates

spring-interview-questions-answers

In a typical Spring MVC application, @Controller classes are responsible for preparing a model map with data and selecting a view to be rendered. This model map allows for the complete abstraction of the view technology and, in the case of Thymeleaf, it is transformed into a Thymeleaf VariablesMap object that makes all the defined variables available to expressions executed ...

Read More »

Spring Scala based sample bean configuration

spring-interview-questions-answers

I have been using Spring Scala for a toy project for the last few days and I have to say that it is a fantastic project, it simplifies Spring configuration even further when compared to the already simple configuration purely based on Spring Java Config. Let me demonstrate this by starting with the Cake Pattern based sample here:     ...

Read More »

Load inheritance tree into List by Spring

spring-interview-questions-answers

I noticed interesting Spring feature. One of my colleagues used it for loading whole inheritance tree of Spring beans into list. Missed that when I was studying Spring docs. Let’s have this inheritance tree of Spring beans:             In following snippet is this tree of beans loaded into list with constructor injection: @Component public class ...

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