Tag SpringBoot
Factory design pattern using Java annotation, IoC and Springboot
Factory pattern is a creational pattern where the logic of creating an object of the class resides in a factory class, in this article, we will see how to implement a factory pattern that always returns a new instance of…
Scoped Bean Prototype Bean problem: Springboot
In Springboot when a bean is created, by default it is Singleton but if you annotate the bean with the scope as “prototype” still the bean are singleton in some cases, I this article we will see how we can…
Infinite Loop with ApplicationReadyEvent – Spring Boot
In my previous post, I wrote about running infinite loop in Java and also I mention that it was not recommended way of doing and wrote an alternate way with Spring boot scheduling, read here. In this blog lets see how we…
A better way to handle the infinite loop
In my previous post, I wrote about running infinite loop in Java and also I mention that it was not recommended way of doing and here is the alternative Instead of we implementing the infinite loop, you can offload that…
Centralized config server for the distributed application using Spring Boot
Spring Cloud Config Spring Cloud Config provides server-side and client-side support for externalized configuration in a distributed system. With the Config Server, you have a central place to manage external properties for applications across all environments. The concepts on both…
Encoded slash (%2F) with Spring URL path param gives HTTP 400
I am working on a new hobby project RESTifying the ZFS APIs, Earlier I was using play framework for my REST projects, now started using SpringBoot While RESTifying the ZFS API one of the API formats is like / will…
Optional Path Variable with Spring Boot Rest
I have created my own annotation with default values set overriding the existing defaults In request parameters @RequestParam you can set the required parameters, I am implementing the Get Users and Get User by Name APIs Legacy way of implementing…