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. […]

Upload file using React and Spring Boot

Introduction In this tutorial we 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. We will upload file to server using Spring REST […]

Download file using React and Spring Boot

Introduction In this post we will see how to download file using React 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 we will fetch records from database and download […]

Download file using Angular and Spring Boot

Introduction In this post we will see how to download file using Angular 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 we will fetch records from database and download […]

Exception Handling in Spring Web Application

Introduction This post will show you an example on exception handling in Spring web application. In other words, we can also say exception handling in Spring MVC. We will use handle exception on Spring REST APIs but not limited to Spring REST APIs. You can create Spring MVC application and handle the exception same way. […]

HATEOAS driven REST API using Spring Boot

Introduction In this post we 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 […]

Angular + Spring Boot file upload example

Introduction Here we will see how to upload file using Angular and Spring Boot application. The Angular + Spring Boot file upload example will use the Angular example from and we will see here how to write server side code for Spring Boot application. We will also exclude the default server Tomcat and include the […]

Spring Data JPA Specification Criteria Query with IN Clause Example

Introduction Spring Data JPA Specification Criteria Query generally used for search functionality on a page where users want to search by giving some inputs. In this example we will use how to use collection or list of input parameters into CriteriaQuery to fetch data from database. Problem and Solution Suppose you have a web page […]

Junit Testing of File Upload and Download in Spring REST Controllers

Introduction Here in this tutorial we will see examples on Junit testing of file upload and download in Spring REST Controllers. We have seen how to write Junit test cases on Spring REST Controllers in my previous tutorial but I did not show how to write Junit testing of file upload and download in Spring […]

File download example using Spring REST Controller

Introduction File download example using Spring REST Controller will show you how to download a file from any client (browser or any client) and Spring REST service is used as a server side technology for downloading the file. The file may be any type, i.e., such as excel, text, word, pdf etc. Here we will […]

Scroll to top