Home » Spring Boot » Page 18

Tag Archives: Spring Boot

MicroServices – Part 3 : Spring Cloud Service Registry and Discovery

spring-interview-questions-answers

In the microservices world, Service Registry and Discovery plays an important role because we most likely run multiple instances of services and we need a mechanism to call other services without hardcoding their hostnames or port numbers. In addition to that, in Cloud environments service instances may come up and go down anytime. So we need some automatic service registration ...

Read More »

Spring Boot & JSP

spring-interview-questions-answers

This guide shows how to use Spring Boot to create MVC web application with JSP. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1. Create maven web project Open eclipse then create a new maven web project and name it as SpringBootWebJsp. The structure of the generated projects look like the following: 2. pom.xml After creating the web project, ...

Read More »

Spring @Lazy annotation use cases

spring-interview-questions-answers

The Spring framework with almost no effort can solve for you many common programming problems, but some of its features are less known than others. In this post, we’re going to take a close look at the @Lazy annotation, which belongs to this group. After reading several examples, you should be able to apply the annotation to your daily development ...

Read More »

MicroServices using Spring Boot & Spring Cloud – Part 1 : Overview

Nowadays MicroServices is the hot buzzword in software development and many organizations prefer building their enterprise applications using MicroServices architecture. In Java community, SpringBoot is the most widely used framework for building both monoliths and microservices. I am planning to write a series of articles covering how to build microservices using SpringBoot and SpringCloud. In this article we are going ...

Read More »

JRebel for a Gradle Spring Boot App

There is some documentation on how to add JRebel to a Spring Boot app that uses Gradle as the build tool. It is basic but works fine. All you have to do is to add a few lines to build.gradle: if (project.hasProperty('rebelAgent')) { bootRun.jvmArgs += rebelAgent } Then set the property in gradle.properties: rebelAgent=-agentpath:[path/to/JRebel library] However there are several ways ...

Read More »

Why SpringBoot is so popular and how to learn SpringBoot effectively?

spring-interview-questions-answers

SpringBoot is the most popular and widely used Java framework. Occasionally this discussion of “Why is SpringBoot so popular?” come between me and my friends/colleagues. Also, I do get emails from various people asking “Spring is huge and how to learn it quickly?”. In this post, I will try to answer these 2 questions. Why is SpringBoot so popular? There could be many ...

Read More »

SpringBoot Messaging with RabbitMQ

spring-interview-questions-answers

RabbitMQ is one of the popular message broker solutions and provides client libraries to be used from various programming languages including Java, Scala, .NET, Go, Python, Ruby, PHP etc. In this tutorial, we will learn how to use RabbitMQ message broker to send and receive messages from a SpringBoot application. We will also look at how to send messages as JSON ...

Read More »

Run away from ‘null’ checks feast: doing PATCH properly with JSON Patch

Today we are going to have a conversation about REST(ful) services and APIs, more precisely, around one peculiar subject many experienced developers are struggling with. To put things into perspective, we are going to talk about web APIs, where the REST(ful) principles adhere to HTTP protocol and heavily exploit the semantics of HTTP methods and (usually but not necessarily) use ...

Read More »