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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Spring Boot SQL Data Access

  • Peter Späth,
  • Felipe Gutierrez

摘要

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.