Home » Tag Archives: Spring (page 8)

Tag Archives: Spring

How SpringBoot AutoConfiguration magic works?

spring-interview-questions-answers

In my previous post Why SpringBoot? we have looked at how to create a SpringBoot application. But you may or may not understand what is going on behind the scenes. You may want to understand the magic behind the SpringBoot’s AutoConfiguration. But before that you should know about Spring’s @Conditional feature based on which all the SpringBoot’s AutoConfiguration magic depends. ...

Read More »

Why SpringBoot?

spring-interview-questions-answers

aSpring is a very popular Java based framework for building web and enterprise applications. Unlike many other frameworks which focuses on only one area, Spring framework provides a wide verity of features addressing the modern business needs via its portfolio projects. Spring framework provides flexibility to configure the beans in multiple ways such as XML, Annotations and JavaConfig. With the ...

Read More »

12 Awesome Spring Data Tutorials to Kick-Start your Data Projects

spring-data-logo

Spring Data’s mission is to provide a familiar and consistent, Spring-based programming model for data access while still retaining the special traits of the underlying data store. It makes it easy to use data access technologies, relational and non-relational databases, map-reduce frameworks, and cloud-based data services. This is an umbrella project which contains many subprojects that are specific to a ...

Read More »

Configure multiple View Resolvers in Spring

spring-interview-questions-answers

1. Introduction In Spring, the View Resolver is provided to resolve the view with the data available in the model, without tightly binding to a View technology, be it JSP, Velocity or Thymeleaf. Spring makes it easy and flexible to configure one or multiple View Resolvers, as per the need would be. 2. Spring MVC application flow Before we proceed with understanding how ...

Read More »

Deploying a microservice – Spring Boot fatjar to Amazon Elastic Beanstalk

spring-interview-questions-answers

Recently I was working on a proof-of-concept web application that I wanted to deploy to a public cloud for a quick demo. I decided to use Amazon as I already had experience with it. Amazon offers several different ways to deploy a Java web application. Amazon EC2 EC2 gives us the flexibility to install and configure whatever we want to on the box. This is a very flexible solution for ...

Read More »

AWS SQS and Spring JMS integration

spring-interview-questions-answers

Amazon WEB Services provide us with the SQS messaging service. The java sdk for sqs is compatible with JMS. Therefore instead of using SQS as a simple spring bean we can integrate it with the JMS integration framework that spring provides. I will use spring-boot and gradle. The gradle file: group 'com.gkatzioura.sqstesting' version '1.0-SNAPSHOT' buildscript { repositories { mavenCentral() } ...

Read More »

Contract First SOAP Service with Spring and Maven

apache-maven-logo

1. Introduction In this tutorial, we will learn to implement a contract-first SOAP service application using JAX-WS, Spring and Maven. This is more of a design decision whether to use contract-first or code-first approach. The most notable benefit of using applying contract-first approach in developing a SOAP based web service application, is that the contract can be shared with the consumers/clients ...

Read More »

Spring Boot with Scala

spring-interview-questions-answers

A while back I had tried out a small Spring Boot  based sample with Scala as the language and found that the combination works out quite nicely – no big surprises there actually as Scala programs ultimately run in the JVM. I have now updated the sample with the latest version of Spring Boot and some of the supporting libraries. ...

Read More »

Setting Up Distributed Infinispan Cache with Hibernate and Spring

jboss-hibernate-logo

A pretty typical setup – spring/hibernate application that requires a distributed cache. But it turns out not so trivial to setup. You obviously need cache. There are options to do that with EhCache, Hazelcast, Infinispan, memcached, Redis, AWS’s elasticache and some others. However, EhCache supports only replicated and not distributed cache, and Hazelcast does not yet work with the latest ...

Read More »

Retrying Method Execution using Spring AOP

spring-interview-questions-answers

One of my blog follower sends an email asking me to show an example of  “RealWorld Usage of Spring AOP”. He mentioned that in most of the examples the usage of Spring AOP is demonstrated for logging method entry/exit or Transaction management or Security checks. He wanted to know how Spring AOP is being used in “Real Project for Real Problems”. ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns