You can utilize and complete the DB data access technology required for backend development. You can understand the principles and structure of Spring DB access technology and grow into a more in-depth backend developer.
What you will learn!
Internal principles of using DB through Spring
Various ways to use DB through Spring
Spring DB Access Technology
Must-know for backend developers
Spring Data Access Technology Part.2
📣 Please check!
This lecture is the 7th lecture in the Java Spring Complete Conquest series . Please check the Spring Complete Conquest roadmap by Younghan Kim, the youngest technical director of Woowa Brothers, first.
• Roadmap link: https://www.inflearn.com/roadmaps/373 (click to go there)
To properly develop a backend web application, you need to complete two major axes: MVC based on HTTP and data access technology based on DB. We completed HTTP and Spring MVC in the previous lecture, so now we need to complete the remaining axis, Spring DB data access technology.
Please check whether you understood the principles and structure of Spring DB through the previous lecture, <Spring DB Part 1> .
1. Understand the basic principles of Spring data access technology
2. Develop directly with code used in practice
Through the Spring DB Part 1 lecture, we have understood the core principles and structure of DB access technology. In this Spring DB Part 2, we will learn various practical utilization technologies based on Part 1. Part 2 is largely divided into three parts.
You will learn about various data access technologies that are mainly used in practice, such as JdbcTemplate, MyBatis, JPA, Spring Data JPA, and Querydsl, by gradually developing them through practical examples. Through this process, you will naturally understand why each technology is necessary and the pros and cons of each technology while developing code.
Data access technology is ultimately used for the purpose of managing data in a database. Therefore, it is necessary to check whether the data access technology can properly store and retrieve data in an actual database. In this lecture, we will explain step-by-step how to conduct tests in a situation where a database is linked.
In Spring DB Part 1, we learned why the transaction function provided by Spring is necessary and how it works, as well as the internal principles. In this lesson, we will learn about Spring transactions in great depth and learn how to use them in practice.
When using SQL directly, the JdbcTemplate provided by Spring is a good choice. This technology makes using JDBC very convenient. And it handles most of the repetitive tasks that occur when using JDBC directly.
* Developers only need to write SQL, define parameters to pass, and map response values.
* Understand the pros and cons of JdbcTemplate by applying it to a real-world web application.
MyBatis offers more features than the JdbcTemplate described above. The most attractive point of MyBatis compared to JdbcTemplate is that it allows you to conveniently write SQL in XML and also allows you to conveniently write dynamic queries. In this lecture, you will understand the advantages and disadvantages of the technology by directly applying MyBatis to a real-life web application.
Spring and JPA are the main technologies in the Java enterprise market. While Spring provides various functions for the entire application, including the DI container, JPA provides ORM data access technology. JPA is as vast as Spring and has a lot to learn, but once you learn it, you can greatly improve your productivity in data access technology. Here, we will look at the basic functions of these technologies, the pros and cons of each technology, and the overall big picture of why you should use them.
Spring Data JPA is a technology that helps you use JPA more conveniently. Simply put, it provides all the basic CRUD functions, so it can dramatically reduce the amount of development code that developers have to write. In this lecture, you can understand the advantages and disadvantages of the technology by directly applying Spring Data JPA to an actual web application.
JPA has difficulty handling complex or dynamic queries. Querydsl can solve these problems very conveniently. If you use JPA in practice, this is a recommended technology that you must use. In the lecture, you can understand the advantages and disadvantages of the technology by directly applying Querydsl to actual web applications.
Data access technology is ultimately used for the purpose of managing data in a database. Therefore, it is necessary to check whether the data access technology can properly store and retrieve data in an actual database. In this lecture, we will explain step by step how to test in a situation where a database is connected. For example, we will explain how to configure a test that connects to a database, and learn how @Transactional and embedded mode DB work through code.
In DB Part 1, we looked at the internal principles of why the transaction function provided by Spring is necessary and how it works. In this lesson, we will look deeply into the various functions provided by Spring Transaction, such as practical precautions when using Spring Transaction AOP, various options for Spring Transaction, and the internal principles of how Spring Transaction is committed and rolled back when an exception occurs.
We cover Spring's transaction propagation in great depth. We understand why transaction propagation is necessary, cover various transaction propagation options, exception handling according to propagation options, and cautions when using transaction propagation options in practice.
Who is this course right for?
Developers who want to access DB and manage data through Spring
Developer job seeker
Working developers who want to deeply understand Spring DB access technology
Developers who want to create web applications with Spring
Need to know before starting?
Java language
Spring Basics
DB Basic Knowledge
Students
474,959
Reviews
29,661
Rating
5.0
Courses
21
교육자
전: 우아한형제들 기술이사, 카카오, SK플래닛
진짜 실무에 필요한 제대로 된 개발자가 될 수 있도록, 교육하는 것이 저의 목표입니다.
EO 인터뷰 영상
개발바닥 - 시골 청년 개발왕 되다
All
88 lectures ∙ (13hr 59min)
are provided.