Best of Baeldung — 2023
- 1
- 2
Baeldung·3y
Why an HTTP GET Request Shouldn’t have a Body
Why an HTTP GET Request Shouldn’t have a Body? In this tutorial, we'll learn why that request shouldn't be sent with a body. We'll explore the alternatives to having a body in a GET request. We may want to send GET requests with bodies for convenience.
- 3
Baeldung·2y
Differences Between Entities and DTOs
Entities and DTOs have different roles and characteristics. Entities represent real-world objects or concepts within the domain and often correspond directly to database tables. They incorporate ORM annotations, establish relationships with other entities, and can contain business logic. On the other hand, DTOs act as data carriers without any business logic. They are used for data transfer between applications or parts of the same application. DTOs are often made immutable, include validation annotations, and use JSON mapping annotations.
- 4
- 5
- 6
Baeldung·3y
Parallelize for Loop in Java
Parallelize for Loop in Java may take a lot of time and keep the system underutilized. In this tutorial, we'll learn different ways to parallelize a for loop in Java to improve the performance of the application in such cases. For each element, we call the Thread.sleep() method to simulate a heavy operation.
- 7
Baeldung·3y
Functional vs. Non-Functional Testing
In this article, we'll explore the basics of testing. We’ll also explore some of the differences between functional and non-functional testing. In functional testing, we ensure that the functionality of the software meets the business requirements. Non-functional tests are as important as functional tests since they help us understand how the system behaves under certain circumstances.