Apache Commons Configuration can be used to allow us to specify configuration parameters to be loaded at runtime by our application. We look at a few use cases and types of configuration files.
Search Results for: property
Get 2’s Complement of a Number in Java
Learn how to get the 2’s complement of a number in Java.
PersistenceUnit vs. PersistenceContext
Learn the main differences between PersistenceUnit vs. PersistenceContext in the JPA context.
Implement the Builder Pattern in Java 8
Learn how to implement a Builder Pattern in Java 8.
Java Weekly, Issue 538
Stream gatherers in Java 23, small additions in Spring, modern Jakarta EE, AOP logging, and Meta patterns!
Finding the Redirected URL of a URL in Java
Learn how handling redirection correctly is essential for building robust web applications that interact with external resources.
How to Specify the logback.xml Location
A quick and practical guide to customizing the logback.xml location.
Polymorphism with Gson
A quick and practical guide to handling polymorphic structures with Gson.
Create and Run Apache JMeter Test Scripts via Java Program
Learn how to create and execute Apache JMeter test scripts programmatically using the JMeter Java API.
How to Test Spring Application Events
Learn how to test code that uses Spring application events.
Continue With Transaction After Exception in JPA
Understand when continuing with the transaction after encountering an exception may be necessary and learn how to handle this in Spring JPA.
How to Check Number Perfection
This article explores perfect numbers and three methods to identify them: brute force, stream-based, and Euclid-Euler theorem.
Disable @Cacheable in Spring Boot
Learn how to configure the cache in Spring Boot and learn how to disable the cache when needed.
Opening HTML File Using Java
Whether opting for the simplicity of the Desktop class or the flexibility of ProcessBuilder, Java offers multiple ways to open HTML files programmatically.
Disable @EnableScheduling on Spring Tests
Learn different options for configuring integration tests while testing applications that use Spring Boot’s scheduled tasks mechanisms
Mapping Enum With MapStruct
Learn to map between enum types and other data types like strings or integers using MapStruct’s @ValueMapping
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
The @Struct Annotation Type in Hibernate – Structured User-Defined Types
Quick intro to Hibernate’s @Struct annotation to create structured user-defined types.
Include null Value in JSON Serialization
Learn how to handle null values when converting Java objects to JSON.
Normalizing the EOL Character in Java
Explore different Java methods for normalizing EOL characters.