Spring Boot pt. 8: Query Handler #2

5 months ago
1

In today's episode we add a Query Handler to comply with Command Query Responsibility Segregation (CQRS) and move the business logic to a @Service class.
We use an Optional to check to see if the result is empty before throwing an exception or returning the result.

LinkTree:
https://linktr.ee/peachezprogramming

Loading comments...