Home » Tag Archives: Spring (page 6)

Tag Archives: Spring

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 »

Creating Custom SpringBoot Starter for Twitter4j

spring-interview-questions-answers

SpringBoot provides lot of starter modules to get up and running quickly. SpringBoot’s auto-configure mechanism takes care of configuring SpringBeans on our behalf based on various criteria. In addition to the springboot starters that comes out-of-the-box provided by Core Spring Team, we can also create our own starter modules. In this post we will look into how to create a ...

Read More »

Insights from Stackoverflow: Most voted for Spring 4 questions

spring-interview-questions-answers

What are the most voted for Spring 4 question asked and answered on Stackoverflow? Here are the top five questions and answers. What’s the difference between @Component, @Controller, @Repository & @Service annotations in Spring, can they be used interchangeable or do they have specific functionality? Where does the @Transaction annotation belong? The DAO class, the service that calls the DAO ...

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:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials