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…
Adding Functionality to the Backend – Building a Blog
Previously in Building a Blog: Insert Data in MongoDB with Spring Boot The proof of concept worked like a charm. Now, I need to create the basis by adding functionality to the backend. Today, I’ll start with creating a blog post and see what challenges lie ahead on the road. So, before I start implementing…
Insert Data in MongoDB with Spring Boot – Building a Blog
Previously in Building a Blog: Securing Database Credentials Last time, we set up our database and Spring Boot project, and secured our database credentials. Now, we have to configure MongoDB in our project. Then we can start to insert data in mongodb and getting a feel for the queries to get the data from the…
Securing Database Credentials – Building a Blog
Previously in Building a Blog: Getting Started with MongoDB With our database set up, it is now time to make a MongoDB connection with Spring Boot. That connects the database to our backend system, making us ready to start implementing our operations. However, I don’t want my database credentials to be all over GitHub. Therefore,…
Building a Blog – Let’s Get Started!
For a while now, I have been trying to keep up with writing articles for my blog. Even though there is so much I want to learn, I still feel like I have trouble keeping a regular schedule for writing my articles. Currently, I’m using WordPress for managing my content, but last week I thought:…