- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Juha Hinkula
- 99字
- 2021-06-25 21:00:24
Summary
In this chapter, we used JPA to create our Spring Boot application database. First, we created entity classes, which are mapped to database tables. Then, we created CrudRepository for our entity class and that provides CRUD operations for the entity. After that, we managed to add some demo data to our database by using CommandLineRunner. We also created one-to-many relations between two entities. At the beginning of the chapter, we used the H2 in-memory database, while at the end, we switched the database to MariaDB. In the next chapter we will create RESTful web service to our backend.
推薦閱讀
- 在最好的年紀學Python:小學生趣味編程
- Boost C++ Application Development Cookbook(Second Edition)
- Android 9 Development Cookbook(Third Edition)
- Python進階編程:編寫更高效、優雅的Python代碼
- 算法精粹:經典計算機科學問題的Python實現
- Hadoop+Spark大數據分析實戰
- Python程序設計
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- Spring快速入門
- Vue.js 3應用開發與核心源碼解析
- 算法設計與分析:基于C++編程語言的描述
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Python Machine Learning Cookbook
- Python編程基礎教程
- Mastering Python