Posted in MongoDB Spring Boot Spring REST

Spring Boot MongoDB CRUD Example

Introduction Here we will see a post on Spring Boot MongoDB CRUD example, where CRUD means Create, Read, Update, and Delete operations. For performing CRUD operations on MongoDB through Spring Boot framework, we need to add required dependency. We will use Spring REST controller to expose our MongoDB CRUD operations onto REST or RESTful API. You may also like to…

Continue Reading... Spring Boot MongoDB CRUD Example
Posted in Spring Boot Spring JPA

Spring Boot Data JPA CRUD Example

Introduction We will see here Spring Boot Data JPA CRUD example. CRUD means Create Read Update and Delete operations. We will use in-memory h2 database in order to perform CRUD operations in database. We have other example on Spring Data JPA CRUD example but the application does not use Spring Boot. In this example, we will use Spring Boot. We…

Continue Reading... Spring Boot Data JPA CRUD Example
Posted in File Upload React JS Spring Boot Spring REST

Upload file using React and Spring Boot

Introduction In this tutorial you will see how to upload file using React and Spring Boot technologies. React or React JS will be used as a client side or front end technology and Spring Boot will be used as a server side technology for uploading file. I will upload file to server using Spring REST API. As a server side…

Continue Reading... Upload file using React and Spring Boot
Posted in File Download React JS Spring Boot Spring JPA Spring REST

Download file using React and Spring Boot

Introduction In this post you will see how to download file using React JS and Spring Boot. There are situations where you need to download file from server or you need to generate report from database and download it. This example may help you in that situation. Here I will fetch records from database and download in a JSON format….

Continue Reading... Download file using React and Spring Boot
Posted in Angular File Download Spring Boot Spring JPA Spring REST

Download File Using Angular And Spring Boot REST

Download File – Spring Boot REST API In this post I will show you how to download file using Angular framework and Spring Boot. There are situations when you need to download file from server or you need to generate report from database and download it. This example may help you in such situation. I will build the Spring Boot…

Continue Reading... Download File Using Angular And Spring Boot REST
Posted in Drools Spring Boot

Drools Support In Spring Boot 2

Spring Drools You will see an example on drools support in Spring Boot 2. You might have seen in past example on how to integrate drools in Spring application. I had used Spring Boot version 1.5.9 but here it will support Spring Boot 2.1.5 to 2.7.2 versions. I will not explain about drools in this post and if you want…

Continue Reading... Drools Support In Spring Boot 2
Posted in Spring Boot Spring JPA Spring REST

HATEOAS driven REST API using Spring Boot

Introduction In this post you will see an example on HATEOAS driven REST API using Spring Boot. An approach that breaks down the principal elements of a REST approach into three steps are resources, http verbs and hypermedia controls: Without using any mechanism of the web, HTTP is used as a transport system for remote interactions. Every individual service end…

Continue Reading... HATEOAS driven REST API using Spring Boot
Posted in Spring Boot Spring Security

Spring Boot Security Example – Single Sign On Using OAuth 2

Introduction Here you will see Spring Boot Security Example – Single Sign On using OAuth 2. Single Sign On or simply SSO is a property of access control of multiple related, yet independent, software systems, where a user logs in with a single set of credentials (username and password) to gain access. Here I will use Spring Boot 2.14/2.7.0. I…

Continue Reading... Spring Boot Security Example – Single Sign On Using OAuth 2
Posted in Spring Boot

Spring Boot Actuator – Creating Custom Endpoints

Introduction Here we will see example on creating custom endpoints in Spring Boot Actuator. There are a number of endpoints provided by Spring Boot however we may want to create a custom endpoint using Spring Boot Actuator. We have seen few examples on Spring Boot actuators: Spring Boot Actuator Example Spring Boot Actuator – Accessing Endpoints via JMX Spring Boot…

Continue Reading... Spring Boot Actuator – Creating Custom Endpoints
Posted in Spring Boot Spring Security

Spring Boot Actuator – Securing HTTP Endpoints

Introduction Here we will see example on securing HTTP endpoints in Spring Boot application. Like other sensitive URLs, you should take care to secure HTTP endpoints. If Spring Security is present, endpoints are secured by default using Spring Security’s content-negotiation strategy. If you wish to configure custom security for HTTP endpoints, for example, only allow users with a certain role…

Continue Reading... Spring Boot Actuator – Securing HTTP Endpoints