Java

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"?> ...

by anil.gola
Tag: spring boot
22-May-2023

Java

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...

by anil.gola
Tag: spring boot
22-Feb-2023

Java, Technology

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...

by Bijoy Paul
Tag: spring boot
24-Jan-2017

Java, Technology

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...

by Ravi Kumar
Tag: spring boot
14-Oct-2016

Java, Software development

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 it into...

by Sandeep Gupta
Tag: spring boot
19-May-2016

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...

by Ashu Kohli
Tag: spring boot
23-Jul-2015

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 :- ...

by Ashu Kohli
Tag: spring boot
17-Jul-2015

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 Groovy trait took over the...

by Uday Pratap Singh
Tag: spring boot
10-Sep-2014

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...

by Amit Jain
Tag: spring boot
10-Sep-2013