- 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.
推薦閱讀
- Hyper-V 2016 Best Practices
- 信息可視化的藝術:信息可視化在英國
- 算法基礎:打開程序設計之門
- Flash CS6中文版應用教程(第三版)
- Python編程與幾何圖形
- 零基礎入門學習Python
- R Data Analysis Cookbook(Second Edition)
- 從零開始:UI圖標設計與制作(第3版)
- Python 3 數據分析與機器學習實戰
- Troubleshooting Citrix XenApp?
- 從零開始學Android開發
- RESTful Web Clients:基于超媒體的可復用客戶端
- IBM RUP參考與認證指南
- 企業級Java現代化:寫給開發者的云原生簡明指南
- 生成藝術:Processing視覺創意入門