This chapter explains how to secure and test your Spring Boot backend. Securing your backend is a crucial part of backend development. In the testing part of this chapter we will create some unit tests in relation to our backend. Unit tests 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:
- How to secure your Spring Boot backend with Spring Boot
- How to secure your Spring Boot backend with JWT
- How to test your backend