Rayven Yor Esplanada
Guide to Unit Testing Spring Boot REST APIs
Testing the system is an important phase in a Software Development Life Cycle (SDLC). Testing promotes code reliability, robustness, and ensures high-quality software delivered to clients if implemented correctly. Testing has been given more importance ever since Test-Driven Development (TDD) has become a prominent process in developing software. Test-driven development...
Guide to Understanding Generics in Java
Java is a type-safe programming language. Type safety ensures a layer of validity and robustness in a programming language. It is a key part of Java's security to ensure that operations done on an object are only performed if the type of the object supports it. Type safety dramatically reduces...
How to Access Property File Values in Spring Boot
Application properties may vary in different environments like how the hosts on your QA environment may vary from your local and production environments. Using Spring Boot, different environments can be configured and updated separately without affecting other environments with the use of property files. In this article, we'll be demonstrating...
Logging in Spring Boot with SLF4J
Server logs are an important part of development, that record the activities or events that the system is performing at any given point in time. Spring Boot makes use of Apache Commons' Logging for its system logs by default. Additionally, by default you can use any of the logging frameworks...
@Controller and @RestController Annotations in Spring Boot
In Spring Boot, the controller class is responsible for processing incoming REST API requests, preparing a model, and returning the view to be rendered as a response. The controller classes in Spring are annotated either by the @Controller or the @RestController annotation. These mark controller classes as a request handler...
Build a Spring Boot REST API with Java - Full Guide
REST stands for REpresentational State Transfer, a standardized approach to building web services. A REST API is an intermediary Application Programming Interface that enables two applications to communicate with each other over HTTP, much like how servers communicate to browsers. RESTful is the most common approach for building web services...