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