Home » Tag Archives: Spring (page 17)

Tag Archives: Spring

Custom Spring namespaces made easier with JAXB

spring-interview-questions-answers

First of all, let me tell this out loud: Spring is no longer XML-heavy. As a matter of fact you can write Spring applications these days with minimal or no XML at all, using plenty of annotations, Java configuration and Spring Boot. Seriously stop ranting about Spring and XML, it’s the thing the of the past. That being said you ...

Read More »

Building Java Web Application Using MyBatis With Spring

mybatis-logo

This post will show how to create a Student Enrollment Application using MYSQL DB with MyBatis framework in a Spring environment. This is a simple application that aims to collect the input details from the user during signup, save the details in the MYSQL DB and authenticate the same during login.     1. Create Java Web Application Project using ...

Read More »

Thymeleaf integration with Spring (Part 1)

spring-interview-questions-answers

1.Introduction This article is focused on how Thymeleaf can be integrated with the Spring framework. This will let our MVC web application take advantage of Thymeleaf HTML5 template engine without losing any of the Spring features. The data layer uses Spring Data to interact with a mongoDB database. The example consists in a Hotel’s single page web application from where ...

Read More »

Implementing Jersey 2 Spring integration

spring-interview-questions-answers

Jersey is the excellent Java JAX-RS specification reference implementation from Oracle. Last year, when we were starting to build RESTful backend web services for a high-volume website, we chose to use the JAX-RS API as our REST framework and Spring framework for dependency injection. Jersey was our JAX-RS implementation of choice. When the project was started JAX-RS API 2.0 specification ...

Read More »

Applying aspect oriented programming

spring-interview-questions-answers

1.Introduction The main target of the aspect oriented programming is the separation of cross-cutting concerns. When we talk about cross-cutting concerns we are referring to generic functionality that is used in several places in our system or application. These concepts are, among others:         Logging Transaction management Error handling Monitoring Security The way to achieve this separation ...

Read More »

Spring Integration Standalone application with Spring Boot

spring-interview-questions-answers

I had earlier blogged about a way to write a standalone Spring Integration application. Spring Boot makes creating this standalone application much simpler. The simple flow was to poll the USGS service providing information about the earthquake activity around the world and to log this information. The flow described using Spring Integration is the following:           ...

Read More »

Configure favicon.ico in Spring MVC based application

spring-interview-questions-answers

Favicon is an icon (favicon.ico) associated with your website. Not every website is using favicon though. But most browsers do not care about it and they make request for it anyways. When favicon is not in place the server will return unnecessary 404 Not Found error. In a typical Spring MVC application, we firstly need to configure security filter that ...

Read More »

Creating contract-first web services with Spring WS

spring-interview-questions-answers

1 Introduction This article explains how to implement and test a SOAP web service using the Spring Web Services project. This example uses JAXB2 for (un)marshalling. To develop the service, I’ll use the contract-first approach, which consists in definning the service contract first, and based on this contract implement the service. The article is divided into the following sections:   ...

Read More »

Spring JMS: Processing messages within transactions

spring-interview-questions-answers

1.Introduction This post will show you how an error in the execution of the consumer during the asynchronous reception of messages with JMS, can lead to the loss of messages. I then will explain how you can solve this problem using local transactions. You will also see that this solution can cause in some cases, message duplication (for example, when ...

Read More »

Spring for Apache Hadoop 2.0 M5

spring-interview-questions-answers

Spring has happily announced the Spring for Apache Hadoop 2.0 M5 milestone releases, while they are also getting much closer to a release candidate. In the Spring blog there is a good comparison between the new version 2.0 and the 1.0 version. According to it: 1.0 version of Spring for Apache Hadoop uses HDFS and MapReduce with either MapReduce v1 ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.