Home » Tag Archives: Spring (page 19)

Tag Archives: Spring

Testing Spring components with Mockito

mockito-logo

Be able to unit test your spring components without the need of loading the full spring-context with its ad-hoc test configurations it is ,in my opinion, a great advantage because it’s clean, easy to maintain, faster to write, smooth to alter. A way to achieve this goal is to use Mockito and tell him to replace the @Autowired components in ...

Read More »

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 »
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