Spring REST Multipart – Multiple uploads example

Last Updated:

Learn to upload multipart binary file (e.g. jpeg image) with a REST API accepting MultipartFile request. Also learn to download file using another REST API using FileSystemResource.

Spring REST – Multipart upload and download example

Last Updated:

Learn to upload multipart binary file (e.g. jpeg image) with a REST API accepting MultipartFile request. Also learn to download file using another REST API using FileSystemResource.

Spring REST Custom Token Authentication Example

Last Updated:

Learn to add custom token based authentication to REST APIs using created with Spring REST and Spring security 5. In given example, a request with header name “AUTH_API_KEY” with a predefined value will pass through. All other requests will return HTTP 403 response.

Spring REST Exception Handling Example

Last Updated:

Learn to handle exceptions (request validation, bad data or other request processing errors) in REST APIs created with Spring REST module. We will be looking at a approach using @ControllerAdvice and @ExceptionHandler.

Spring REST CRUD Example with JPA Configuration

Last Updated:

Learn to create REST APIs for crud operations using Spring REST and JPA configuration (H2 database as backend) without Spring boot auto configuration feature.

Spring REST JSON Response Example

Last Updated:

In this spring rest json example, we will learn to write RESTFul webservices capable of returning JSON for resources using MappingJackson2JsonView.

Spring REST XML Response Example

Last Updated:

In this Spring REST XML example, I am writing hello world example for REST APIs using Spring REST features. In this example, I will be …

Spring REST Controller Example

Last Updated:

Learn to create Spring REST controller which can handle REST API calls in any Spring MVC application. It invloves adding @Controller and @RequestMapping annotations. For …

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.