Spring Boot SQL Data Access
摘要
In the previous chapters, you learned how to create applications that hold data using in-memory persistence. In this chapter, you learn how to use Spring Boot to create applications that store data in a SQL database. Spring Boot relies on Spring Framework Data Access, which provides access to SQL databases using the JdbcTemplate class. This class removes all the boilerplate of connecting to the database engine, session management, transaction management, and more. Spring Boot can also use the power of the Spring Data project, which provides additional functionality such as using the Repository interface without worrying about the implementation because Spring Data takes care of it behind the scenes. This chapter continues working with the book's two projects—Users App and My Retro App.