Spring Boot
2023
Dynamic Quartz Job Scheduling in Spring Boot
·4 mins
Mayukh Datta
Technical
Quartz
Spring Boot
Quartz is a feature-rich open-source Java library used to schedule jobs. The core components of this library are Job, JobDetail, Trigger, and Scheduler. The JobDetail is where the job definition lies.
Custom Logger Configuration for Feign Clients
·3 mins
Mayukh Datta
Technical
Spring Boot
Feign Client allows you to abstract the mechanics of calling a REST service. You need to configure and annotate the Feign Client interface to call a RESTful web service by making a simple Java method call.
2022
Clean Code: Write Methods with No Side-effects
·4 mins
Mayukh Datta
Technical
Java
Spring Boot
I was listening to Uncle Bob Martin’s lecture on YouTube last night. His No ‘side-effects’ advice hit me and made me realize that I was doing something in my code that I shouldn’t be doing it that way.
Get Remote Server Logs of Your Spring Boot Application via REST API
·5 mins
Mayukh Datta
Technical
Java
Spring Boot
I’m currently working on a microservices-based Spring Boot application, where I’m using Logback as my logging framework. The application is now running live on a remote server. Since I don’t have access to the server, I don’t get to see the logs when I want to see them or when there is some error.
When to Use Enums Instead of If-else or Switch Statements to Make the Code Cleaner?
·3 mins
Mayukh Datta
Technical
Java
Spring Boot
We usually use if-else or switch statements to write our logical conditions in our code. There is nothing to worry about as long as your list of logical conditions is short.