上QQ阅读APP看书,第一时间看更新
CRUD Operations in Plain REST (Without Reactive) and File Upload
In the last chapter, we explored a CRUD operation with Reactive support. As the Spring development team is still updating more Reactive entities, Reactive support hasn't reached their level yet. Though Spring 5 Reactive support is working fine, they still need to improve it to make it stable. After considering these pointers, we plan to avoid Reactive support in order to make it simple for you.
In this chapter, we will go through basic CRUD (Create, Read, Update, and Delete) APIs in Spring 5 (without Reactive) REST. After this chapter, you will be able to do a simple CRUD operation in Spring 5 without Reactive support. Also, we will talk about file upload options in Spring 5.
In this chapter, we will cover the following methods:
- Mapping CRUD operations to HTTP methods
- Creating a user
- Updating a user
- Deleting a user
- Reading (selecting) a user
- File uploads in Spring