• 15 July

    Spring boot @ConfigurationProperties

    In this tutorial, we are going to see about Spring boot @ConfigurationProperties annotation. Spring boot @ConfigurationProperties allows you to map properties values with java object easily. Let’s first see the normal mapping first. Let’s say you have properties file below. application.properties [crayon-6623b647a684d495330652/] You can access above property file as below. [crayon-6623b647a6854075549434/] So, you can use @Value […]

  • 09 July

    Spring boot starters

    In this tutorial, we are going to see about Spring boot starters. This is part of Spring boot tutorial series. Dependency management is one of the critical tasks while working on any project. You want to create a new spring project with JPA capabilities. Do you know what dependencies you need to include? You might […]

  • 24 June

    No qualifying bean of type in Spring or Spring Boot

    In this post, we will see about an exception: No qualifying bean of type. Exceptions are least expected but you might get it while working with Spring. or Spring boot. Did you get this exception: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type? If yes, let’s see different reasons for it. Reason 1: You forgot to declare […]

  • 17 June

    Spring XML configuration example

    In this post, we will see how to create Spring hello world XML based configuration example. Here are simple steps to create Spring XML configuration example. 1. Create a simple java maven project. 2. Maven dependency put spring and cglib maven dependency in pom.xml. [crayon-6623b647a7dbe457017095/] So your pom.xml will look like: [crayon-6623b647a7dc2563015615/] 3. Create Bean class […]

  • 15 June

    Injecting Prototype bean into a Singleton bean in Spring

    In this post, we will see how to inject prototype bean scope into Singleton Instance in Spring. This is one of the most asked Spring interview questions. Problem When you inject prototype bean to singleton bean, prototype bean still behave like a singleton bean. Let’s understand this with the help of example. 1. Create a […]

  • 15 June

    Circular dependencies in Spring

    In this post, we will discuss one of the most asked Spring interview questions. What happens if there are circular dependencies in Spring. Problem What if there are circular dependencies in Spring? For example: Class A requires an instance of Class B and Class B requires an instance of Class A. Let’s create an example […]

  • Spring Boot Interview questions
    06 August

    Spring boot interview questions for 10 years experience

    In this post, we will see top 15 Spring Boot interview questions with answers.If you want to read more about Spring boot, you can go through Spring boot tutorial. If you are looking for below queries then this post will help you as well. Spring boot interview questions for 3 years experience Spring boot interview […]

  • 10 July

    Spring MVC tutorial

    In this post, we will learn about Spring MVC tutorial. Spring MVC framework is a robust Model view controller framework which helps us to develop a loosely coupled web application. It separates different aspects of web applications with the help of MVC architecture. Model: Model carries application data. It generally includes POJO in the form […]

  • 01 July

    Spring Boot tutorial

    Spring framework is very popular frameworks for developing various web and enterprise application. Spring has developed various projects over time and Spring Boot is one of them. In this tutorial, we will learn Spring boot tutorial with various examples. Before learning Spring Boot application, you must have some knowledge about XML and Java Configuration in Spring […]