Java Development
-
Set a parameter in a Java HttpServletRequest
The HttpServletRequest interface in Java is a fundamental part of Jakarta Servlets formerly Java Servlets, providing a way for servlets…
Read More » -
Image Display and Upload with Thymeleaf, Spring MVC, and MySQL
In modern web development, the ability to seamlessly display images from various sources and allow users to upload images are…
Read More » -
Java 21 Unnamed Patterns and Variables
In the world of Java 21, the introduction of the unnamed patterns and variables feature (JEP-443) endeavors to achieve a…
Read More » -
Mock Same Method with Different Parameters
When creating a mock for a Java method, it proves beneficial to obtain varied responses depending on the provided parameters.…
Read More » -
Query With IN Clause in Spring Data Cassandra
Spring Data Cassandra is a powerful extension of the Spring Data project, designed to simplify the integration of Apache Cassandra…
Read More » -
Constructor Unit Testing with Mockito
Constructor unit testing with Mockito is a task Java developers come across really often. In this brief tutorial, we will…
Read More » -
JUnit Assert Regex Matches
JUnit is often the initial preference for developers when conducting unit tests on Java code. In practical situations, a frequent…
Read More » -
Test Main Method with JUnit
The entry point for any Java application is the main() method, and its structure can vary based on the application…
Read More » -
How to load custom properties files in Spring Boot?
The @PropertySource annotation in Java is a component of the Spring Framework, specifically used for externalizing configuration. Employed on a…
Read More » -
Testing Spring Data JPA with @DataJpaTest
Today, Unit Testing holds significant importance, and the Spring Framework offers the @DataJpaTest annotation to simplify the process of writing…
Read More »