Learn how to dynamically register beans based on custom properties.
Search Results for: properties
A Guide to Log4j and the log4j.properties File in Java
Learn about Log4j and how to configure the core components using the log4j.properties file in Java.
Log4j 2 Configuration Using a Properties File
Learn about Log4j 2, its benefits over Log4j, and how to configure its core components using the log4j2.properties file in Java.
How to Convert application.properties to application.yml for Spring Boot
Explore the difference between .properties and .yml files and learn how to convert the application.properties file to application.yml and vice-versa using various tools and plugins.
Spring Boot Properties Prefix Must Be in Canonical Form
Learn how to avoid Spring Boot configuration properties errors by using canonical kebab-casing formats.
Single Assert Call for Multiple Properties in Java Unit Testing
Learn three approaches to verifying multiple properties in one assert call using JUnit5 and AsssertJ.
Overriding the Values of Remote Properties in Spring Cloud Config
Explore different ways of overriding the values of remote properties in Spring Cloud Config.
Log Properties in a Spring Boot Application
For debugging purposes, it can be useful to list the application properties within a Spring Boot application. We look at a few techniques for outputting and filtering runtime properties.
Using Environment Variables in Spring Boot’s Properties Files
Learn how to use environment variables in Spring Boot’s application.properties.
@RequestMapping Value in Properties File
Learn how to set the @RequestMapping value in a properties file.
Spring Boot Configuration Properties Migrator
Explore a support system provided by Spring to facilitate Spring Boot upgrades
Default Values for Maven Properties
In this short article, we’ll go through how to configure Maven properties default values, and how to use them.
Command Line Arguments as Maven Properties
In this short tutorial, we’ll look at how we can pass arguments to Maven using the command line.
Converting Java Properties to HashMap
Let’s see how we can convert java.util.Properties into a HashMap
Using application.yml vs application.properties in Spring Boot
Spring Boot supports both .properties and YAML. We explore the differences between injecting properties, and how to provide multiple configurations.
Accessing Maven Properties in Java
Learn how to access Maven properties in Java.
Spring YAML vs Properties
Compare the usage of Spring YAML versus the properties file.
Inject Arrays and Lists From Spring Properties Files
Learn various ways to use @Value and SpEL to inject property values as arrays or lists in Spring
Spring Configuration Bootstrap vs Application Properties
A quick overview of context hierarchies in Spring Cloud.
IntelliJ – Cannot Resolve Spring Boot Configuration Properties Error
IntelliJ can provide autocomplete and context help for custom properties, but we need to make some additional configuration to our project to enable that.