Home » Tag Archives: Spring (page 6)

Tag Archives: Spring

Introducing The Delegate Pattern

spring-interview-questions-answers

Delegate: a person who is chosen or elected to vote or act for others – Merriam-Webster. Delegate pattern: In software engineering, the delegation pattern is a design pattern in object-oriented programming where an object, instead of performing one of its stated tasks, delegates that task to an associated helper object – Wikipedia. Make things as simple as possible, but not simpler – Albert ...

Read More »

SpringBoot : Working with MyBatis

mybatis-logo

MyBatis is a SQL Mapping framework with support for custom SQL, stored procedures and advanced mappings. SpringBoot doesn’t provide official support for MyBatis integration, but MyBatis community built a SpringBoot starter for MyBatis. You can read about the SpringBoot MyBatis Starter release announcement at http://blog.mybatis.org/2015/11/mybatis-spring-boot-released.html and you can explore the source code on GitHub https://github.com/mybatis/mybatis-spring-boot. Create a SpringBoot Maven project ...

Read More »

SpringBoot : Working with JOOQ

jooq-2-logo

In my previous article SpringBoot : Working with MyBatis  we have learned how to use SpringBoot MyBatis Starter to quickly get up and running with Spring and MyBatis. In this article we are going to learn about how to use SpringBoot JOOQ Starter. JOOQ (Java Object Oriented Querying) is a persistence framework which embraces SQL. JOOQ provides the following features: Building ...

Read More »

SpringBoot : Working with JdbcTemplate

spring-interview-questions-answers

Spring provides a nice abstraction on top of JDBC API using JdbcTemplate and also provides great transaction management capabilities using annotation based approach. First let’s take a quick look at how we generally use Spring’s JdbcTemplate (without SpringBoot) by registering DataSource, TransactionManager and JdbcTemplate beans and optionally we can register DataSourceInitializer bean to initialize our database. @Configuration @ComponentScan @EnableTransactionManagement @PropertySource(value ...

Read More »

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 »

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