- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- Juha Hinkula
- 122字
- 2021-06-24 14:03:29
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, which 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 a RESTful web service for our backend. We will also look at testing the RESTful web service with the curl command-line tool, and also by using Postman GUI.
推薦閱讀
- 網(wǎng)絡(luò)協(xié)議工程
- Web安全防護(hù)指南:基礎(chǔ)篇
- EDA技術(shù)與VHDL編程
- 電子政務(wù)效益的經(jīng)濟(jì)分析與評價(jià)
- PLC、現(xiàn)場總線及工業(yè)網(wǎng)絡(luò)實(shí)用技術(shù)速成
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- 雷達(dá)饋線技術(shù)
- 圖解手機(jī)元器件維修技巧
- C/C++串口通信:典型應(yīng)用實(shí)例編程實(shí)踐
- 端到端QoS網(wǎng)絡(luò)設(shè)計(jì)
- 語音信號(hào)處理及Blackfin DSP實(shí)現(xiàn)
- 深入理解OpenStack Neutron
- Web用戶查詢?nèi)罩就诰蚺c應(yīng)用
- 小型局域網(wǎng)組建