Chapter 5: Securing and Testing Your Backend
This chapter explains how to secure and test your Spring Boot backend. Securing your backend is a crucial part of code development. In the testing part of this chapter, we will create some unit tests in relation to our backend—these will make your backend code easier to maintain. We will use the database application that we created in the previous chapter as a starting point.
In this chapter, we will cover the following topics:
- Understanding Spring Security
- Securing your backend with a JSON Web Token (JWT)
- Testing in Spring Boot
- Creating unit tests
Technical requirements
The Spring Boot application that we created in the previous chapters is required.
The following GitHub link will also be required: ...
Get Full Stack Development with Spring Boot and React - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.