Showing 12 Result(s)
Spring Boot

Spring Boot Rest Exception Handling Example

In this article, we focus on exception handling for a REST API. We talk about the various techniques to implement effective error handling for the Spring Boot REST APIs. Introduction to Exception handling for REST APIs In the typical Spring Boot REST-based application, we generally expose several REST endpoints for consumers to communicate with the …

Spring Boot

Spring Boot Security – Spring REST Security Example

In the last two articles, I have demonstrated Spring Boot REST APIs through an example. Furthermore, we have also seen how to validate bean properties using hibernate validators. Particularly In this tutorial, we will see how to add secure our REST endpoints through spring security. What is Spring Security SpringSecurity It is a part of the …

spring boot rest example
Spring Boot

Spring Boot Rest Example – Restful Webservices CRUD example

REST, or REpresentational State Transfer, is an architectural style to build applications by using APIs that allow the server to communicate with clients using the basic HTTP protocols. Why REST is popular:1. It allows the separation between the client and the server.2. It doesn’t rely on a single technology or programming language.3. You can build the …

Spring Boot

Spring @Bean – What is Spring Bean with examples

The Spring framework is a popular framework that lets you create enterprise applications conveniently. The core of the spring framework is dependency injection. Dependency injection or dependency inversion is a way in which you decouple the conventional dependencies between objects. To understand dependency injection let’s take an example of the Student and Address class. As …

Spring Boot

Deploying Spring Boot application in Google Kubernetes

In this article, we will take a look at Kubernetes, the difference between Kubernetes and Docker, and how to deploy Spring boot application in Kubernetes. Kubernetes is an open-source container orchestration and management tool. Kubernetes can manage the container’s lifecycle. Furthermore, it can perform operations like container deployment, scaling-up & scaling-down the containers along with …