Home » Tag Archives: Spring (page 18)

Tag Archives: Spring

What is Spring Data?

spring-interview-questions-answers

(This is related to Project Student and I will revisit this topic later.) Spring Data came up in passing in several recent interviews. What is Spring Data? To answer that let’s consider the standard approach to persistence – all access is made via Data Access Objects (DAOs). This completely isolates the rest of the system from the specific details of ...

Read More »

Using more than one property file in Spring MVC

spring-interview-questions-answers

Everybody heard about portals which combine single web applications to a big one. A portal software works like mashups – content from several sources is picked up in a single service, mostly displayed in a single web page. A portal software also allows to change user settings, such as language or theme, across all single web applications (independent modules) embedded ...

Read More »

Spring REST: Exception handling vol. 1

spring-interview-questions-answers

Table of contents Spring REST: Exception handling vol. 1 Spring REST: Exception handling vol. 2 Spring REST: Exception handling vol. 3 Hi everyone, it’s time to continue publish new articles in my blog. So I’m happy to announce that I’m planning to write a couple of technical series of posts. In the current post I’m going to start talking about ...

Read More »

Why I like Spring bean aliasing

spring-interview-questions-answers

Spring framework is widely used as a dependency injection container, and that’s for good reasons. First of all, it facilitates integration testing and it gives us the power of customizing bean creation and initialization (e.g. @Autowired for List types). But there is also a very useful feature, that might get overlooked and therefore let’s discuss about bean aliasing. Bean aliasing ...

Read More »

Why I stopped using Spring

spring-interview-questions-answers

My post on DZone about Humble Architects sparked somewhat of a controversy, especially around my disparaing comments regarding Spring and Dependency Injection Frameworks. In this post, I expand on my I stopped using Spring. I was one of the earliest adopter of Spring in Norway. We developed a large system where we eventually had to start thinking about things like ...

Read More »

Scaling Spring Batch – Step Partitioning

spring-interview-questions-answers

We have talked about how to get up and running with Spring Batch in a few of previous articles. Now, we’re going to start discussing some of the strategies available for scaling Spring Batch. This article will focus on partitioning a step so that the step has several threads that are each processing a chunk of data in parallel. This ...

Read More »

HOW-TO: Get started quickly with Spring 4.0 to build a simple REST-Like API (walkthrough)

spring-interview-questions-answers

HOW-TO: Get started quickly with Spring 4.0 to build a simple REST-Like API (walkthrough) Yet another tutorial about creating Web API with Spring MVC. Not really sophisticated. Just a walkthrough. The resulting app will serve simple API, will use Mongo as its persistence and it will be secured with Spring Security. Getting started – POM Of course, I am still ...

Read More »

Spring REST: Exception handling vol. 3

spring-interview-questions-answers

It’s a last article from the series about Spring REST exception handling. Finally this time I will talk about handling of REST exceptions which can occur during a form processing. So in this tutorial you will see everything related to REST, forms and exception handling. What about client side? JQuery will be used to reflect all responses of the REST ...

Read More »

Spring REST: Exception handling vol. 2

spring-interview-questions-answers

This is a second article from the series about REST Exception handling with Spring. In my previous post I have described how to organise the most simple exception handling in a REST service. This time I will go further and I will show you when you’d better to use exception handling on a @ControllerAdvice level. INTRO Before I will start ...

Read More »

Spring Data MongoDB cascade save on DBRef objects

mongodb-logo

Spring Data MongoDB by default does not support cascade operations on referenced objects with @DBRef annotations as reference says: The mapping framework does not handle cascading saves. If you change an Account object that is referenced by a Person object, you must save the Account object separately. Calling save on the Person object will not automatically save the Account objects ...

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