filmov
tv
Spring Boot REST API Anti-Patterns and Best Practices
![preview_player](https://i.ytimg.com/vi/koxu51eqDiQ/maxresdefault.jpg)
Показать описание
#sivalabs #spring #springboot #intellij #productivity #java #testing #junit #junit5 #maven #jpa #hibernate #unittesting
In this video, I will explain what are some of the common anti-patterns used in Spring Boot REST API development and how to fix them by following best practices.
Timestamps
00:00:00 Introduction
00:03:10 Existing REST API walk-through
00:06:42 Not following REST conventions
00:18:57 Using Field Injection
00:28:42 Not using pagination
00:36:00 Not using request-specific payload bindings
00:45:42 Using JPA DDL auto-generation
00:53:18 Misusing Spring Data JPA derived-query method names
00:57:23 Loading entire entities and using only a small subset of fields
01:03:00 Using JPA that results in N+1 Select problems
01:09:36 Not implementing proper Exception Handling
01:15:48 Using @SpringBootTest for testing slices (controller, repository)
01:21:35 Testing with in-memory database
01:29:01 Not using proper package structure
References
=============================================
Connect with Me
=============================================
Popular Series Playlists
=============================================
⭐ Tags ⭐
best spring tutorials, best spring boot tutorials, how to learn spring boot, mastering spring boot, complete java testing course, java testing best practices, how to build spring boot rest API, spring cloud tutorials, spring boot docker tutorial, spring boot Kubernetes tutorial, how to become proficient in java, how to learn spring boot quickly, how to learn spring boot in-depth
In this video, I will explain what are some of the common anti-patterns used in Spring Boot REST API development and how to fix them by following best practices.
Timestamps
00:00:00 Introduction
00:03:10 Existing REST API walk-through
00:06:42 Not following REST conventions
00:18:57 Using Field Injection
00:28:42 Not using pagination
00:36:00 Not using request-specific payload bindings
00:45:42 Using JPA DDL auto-generation
00:53:18 Misusing Spring Data JPA derived-query method names
00:57:23 Loading entire entities and using only a small subset of fields
01:03:00 Using JPA that results in N+1 Select problems
01:09:36 Not implementing proper Exception Handling
01:15:48 Using @SpringBootTest for testing slices (controller, repository)
01:21:35 Testing with in-memory database
01:29:01 Not using proper package structure
References
=============================================
Connect with Me
=============================================
Popular Series Playlists
=============================================
⭐ Tags ⭐
best spring tutorials, best spring boot tutorials, how to learn spring boot, mastering spring boot, complete java testing course, java testing best practices, how to build spring boot rest API, spring cloud tutorials, spring boot docker tutorial, spring boot Kubernetes tutorial, how to become proficient in java, how to learn spring boot quickly, how to learn spring boot in-depth
Комментарии