How to Throw Custom Exceptions with Spring Boot
In the process of building my blog, I want to be able to let the use know if something went wrong. It can vary from the standard error 404, a custom message to my own custom exceptions. I’ll show you how to throw custom exceptions with Spring Boot, so you can do it yourself next…
Check for Unique Documents in MongoDB with Spring Boot
Previously in Building a Blog: Adding Functionality to the Backend Whilst figuring out how exceptions work, I wanted to make sure that the blog posts are always unique. But how do we do that? That’s why I’ll show you how to check for unique documents in MongoDB with Spring Boot. @Indexed Annotation At first, I…