Spring Framework

This tutorial will teach you how to bind nested properties from the application.properties file to a Java class. Once you finish this tutorial, you might also want to check: How to bind simple(not nested) properties to a Java class, and How to use @ConfigurationProperties with Spring Boot @Profile. Example of Nested Properties in a Properties File…

Read More Spring Boot Nested Properties with @ConfigurationProperties

In this tutorial, you will learn how to use @ConfigurationProperties with Spring Boot Profiles. This tutorial assumes you have a basic knowledge of how to use @ConfigurationProperties in your Spring Boot application. If you are very new to it, please read this tutorial: Spring Boot @ConfigurationProperties Tutorial. You should also have basic knowledge of Spring Boot…

Read More Using Spring Boot @ConfigurationProperties and @Profile

@ConfigurationProperties annotation is used to bind all the properties in a properties file to a Java class. You can then use an object of the Java class annotated with ConfigurationProperties annotation to access configuration properties defined in a properties file. Earlier I shared with you a tutorial on how to read application properties in Spring Boot RESTful…

Read More Spring Boot @ConfigurationProperties Tutorial

In this tutorial, you will learn how to use Spring Boot Profiles. You can use Spring Boot Profile functionality when providing application configuration for a specific environment. For example, when your application runs in a development environment, then your application will use a specific for that environment application.properties file. And when you are ready to…

Read More Spring Boot Profiles Tutorial

In this tutorial, you will learn how to use Spring Cloud Bus to notify running Microservices about the changes in the Spring Cloud Config property file. Running Microservices will be updated with new properties stored in Spring Cloud Config file without the need for you to restart them. This way you can update values in…

Read More Spring Cloud Bus – Refreshing Config Changes

In this tutorial, you will learn how to download, install and run Rabbit MQ on your computer. I will also show you how to change the default Rabbit MQ Administrator password and create a new user. You might also be interested to learn how to run RabbitMQ in a Docker container or use RabbitMQ with…

Read More Rabbit MQ – Download, Install and Change Password

In this tutorial, you will learn how to use Zuul API Gateway to enable the load balancing of your RESTful Web Services registered with Eureka Discovery Service. For a step by step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Because Zuul API Gateway internally uses Ribbon Load Balancer…

Read More Zuul and Eureka – Load Balancing Example

In this tutorial, you will learn how to create a Web Service or a Microservice and how to make it register with Eureka Discovery Server. For a step-by-step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Start Eureka Discovery Server To be able to follow this tutorial, you will…

Read More Register Microservice(Eureka Client) with Eureka Server

Spring Boot has a nice feature that enables the application to automatically restart when you change your Java code. This automatic restart of your application is often called Hot Swap. Spring Boot Dev Tools Dependency To enable your Spring Boot application to automatically restart when you make a change to your Java code, add the…

Read More Spring Boot Hot Swap or Automatic Restart

This tutorial will teach you how to use constructor-based dependency injection(DI) in Spring Framework when building RESTful Web Services. Read the following tutorial to learn about the different types of dependency injection in Spring and which one may be better suited for your specific use case. Constructor-Based Dependency Injection Overview Constructor-based dependency injection is a…

Read More Spring Constructor-Based Injection