Java/JVM

Embracing Virtual Threads in Spring Boot

In this blog, we will see how we can take leverage of project loom virtual threads in spring-boot. We will also do some load testing with the help of JMeter and see how response time is for both virtual threads and normal threads. Let’s quickly setup our spring boot project. <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” […]

Java/JVM

Distributed Locks in Spring-boot Microservice Environment

Suppose we are in an environment where only one instance is running in production. We want to do an account update and synchronise the transaction where we are doing the update. This can easily be achieved with the help of Reentrant Locks api’s of java, as shown below. @Service @RequiredArgsConstructor @Slf4j public class AccountService { […]

Anil Gola
Anil Gola
Read

Java/JVMTechnology

Fortifying your REST API using Spring security

Spring Security is a lightweight security framework that provides authentication and authorization support in order to secure Spring-based applications. It comes bundled with popular security algorithm implementations. I would cover a series of different topic related to spring security in my upcoming blogs. We will go through the setup process first, then analyze when and where […]

Bijoy Paul
Bijoy Paul
Read

Java/JVMTechnology

An overview of Spring Boot

I have come up with this blog that outlines: What is Spring Boot? Why do we use it? How to get started? 1. What is Spring Boot? Spring boot from Spring is just another project enabling developers to create stand-alone, production-grade Spring based applications. 2. Why do we use it? Create stand-alone Spring applications Embed Tomcat, […]

Ravi Kumar
Ravi Kumar
Read

Java/JVMSoftware developmentTechnology

How to configure Templating Solution Engine SiteMesh with Spring boots

SiteMesh is a very simple, lightweight & flexible Templating Solution framework for Java Web applications. SiteMesh can be used in lot more ways if we combine it with Spring boot framework. Configuring the SiteMesh with Spring Boot is little bit tricky but not complex, as we need to create a custom filter and then inject […]

Technology

Binding External Configuration properties in spring boot application

Hi, In this blog we’ll learn how we can inject configuration properties in a springBoot application and what are the benefits of spring boot over spring while injecting configuration properties. There are two ways to inject our configuration properties:- 1. By Using @Value annotation (Spring 3.0+ And Grails 3.0) 2. Typesafe Configuration Properties (Sring-Boot) Lets suppoese […]

Technology

Integrate SwaggerUI with spring boot application

Hi Guys, In this artical we learn how to integrate SwaggerUI with spring boot application. Basically ‘SwaggerUI’ is used to serves documentation of an REST API and another most powerfull feature is, it provides a way to enable developer to play around the REST API without having write any code. Steps to Integrate SwaggerUI :- […]

Grails

Day 2 at SpringOne 2GX 2014

Day 2 kicked off and we had very really cool sessions planned around Groovy, Grails and Spring Boot. It was quite an experience listening to all the new features and changes coming over the horizon of Groovy and Grails. A quick excerpt of the day follows: # Groovy in 2014 and beyond : Guillaume Laforge […]

Grails

Day one at SpringOne2GX 2013

The long awaited SpringOne2GX event started with registrations followed by the key note from Adrian Colyer, CTO, SpringSource. There were around 1200 attendees, making it the largest ever SpringOne2GX event. Many significant developments were shared today. A snapshot of these are: # Spring has launched its new site. # Grails 2.3.0 got released. # Got […]

Amit Jain
Amit Jain
Read