Home » Tag Archives: Spring (page 20)

Tag Archives: Spring

Consuming Spring-hateoas Rest service using Spring RestTemplate and Super type tokens

spring-interview-questions-answers

Spring-hateoas provides an excellent way for applications to create REST based services which follow the HATEOAS principle. My objective here is not to show how to create the service itself, but to demonstrate how to write a client to the service. The sample service that I am going to use is the ” the-spring-rest-stack” written by Josh Long( @starbuxman). The ...

Read More »

Spring Boot – foundation for modern Java application

spring-interview-questions-answers

Spring Boot is relatively new project from Spring.io. Its aim is to simplify creating new Spring Framework based projects and unify their configuration by applying some conventions. This approach convention over configuration is already successfully applied in most of so called modern web frameworks like Ruby on Rails, Django or Play! Framework. On the official website we can find primary ...

Read More »

Spring Integration Publisher

spring-interview-questions-answers

Consider a hypothetical requirement – You have a service class in your application and you want to capture some information around the calls to this service:                   @Service public class SampleBean { private static final Logger logger = LoggerFactory.getLogger(SampleBean.class); public Response call(Request request) { logger.info("SampleBean.call invoked"); return new Response(true); } } AOP ...

Read More »

Spring LDAP 2.0.0 is released

spring-interview-questions-answers

The Spring team is pleased to announce that Spring LDAP 2.0.0 is released and is now available from Maven Central and Bintray. Spring LDAP 2.0.0.RELEASE Released lists all changes in the new release. JIRA’s change logs contain a list of the changes too. The most basic features of 2.0.0 release are presented below: Spring LDAP now includes Spring Data Repository ...

Read More »

Spring XD 1.0.0.M5 is here!

spring-interview-questions-answers

Spring XD announces the Spring XD 1.0.0.Milestone 5 release. You can download it from here. According to Spring XD 1.0.0.M5 Released, Spring XD is a unified, distributed, and extensible system for real time analytics, batch processing, data injection and data export. The 1.0.0.Milestone 5 release provides new features to solving big data problems, as described below: There are pre-defined batch ...

Read More »

Project Student: Sharding Integration Test Data

spring-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client With Jersey, Webservice Server with Jersey, Business Layer and Persistence with Spring Data. All of the integration tests until now have used an in-memory embedded database that did not retain information from run to run. This changes when we fully integrate the REST server with a “real” database server ...

Read More »

Project Student: Business Layer

spring-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client With Jersey, Webservice Server with Jersey and Persistence with Spring Data. The third layer of the RESTful webapp onion is the business layer. This is the guts of the application – well-written persistence and webservice layers are constrained but anything goes in the business layer. We’re only implementing CRUD ...

Read More »

AmazonSQS and Spring for messaging queue

spring-interview-questions-answers

The next post will demonstrate how to use Spring JMS templates and DLMC’S together with AmazonSQS API in order to place message queue. Why would I use Amazon SQS? Easy to configure Cross-platfom support Earn from your self redundant, conjunction and scaling worries.         Why I wouldn’t use Amazon SQS? If the latency requirement demands less than  ~20 ...

Read More »

Project Student: Persistence With Spring Data

spring-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client With Jersey, Webservice Server with Jersey and Business Layer. The final layer of the RESTful webapp onion is the persistence layer. There are two philosophies for persistence layers. One camp sees the database as a simple store and wants to keep this layer extremely thin. The other camp knows ...

Read More »

Adding Social Sign In to a Spring MVC Web Application: Unit Testing

spring-interview-questions-answers

Spring Social 1.0 has a spring-social-test module which provides support for testing Connect implementations and API bindings. This module was removed from Spring Social 1.1.0, and it was replaced with the Spring MVC Test framework. The problem is that there is practically no information about writing unit tests for an application which uses Spring Social 1.1.0. This blog post fixes ...

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.