configurationproperties Questions
2
Solved
I have this custom object:
data class Pair(
var first: String = "1",
var second: String = "2"
)
And now I want to autowire it with my application.yml:
my-properties:
my-integer-list:
- 1
- ...
Terresaterrestrial asked 22/7, 2019 at 19:40
1
Solved
I am creating a Maven artifact with following classes and configuration in custom Spring Starter project:
@ConfigurationProperties(prefix = "commons.time.formats")
@Getter
@Setter
public ...
Johnston asked 7/1, 2023 at 22:45
1
Solved
I'm pulling my hair out here. I want to use a Java record for my @ConfigurationProperties, providing default values to unspecified config properties. Here is a very simple example:
@ConfigurationPr...
Equinoctial asked 24/5, 2022 at 19:11
5
Solved
I need to read all properties in application.properties file in a map
In the code below the property test has the respective value but the map is empty. How can I fill "map" with the values in the...
Lecky asked 10/9, 2018 at 4:54
2
Solved
Source code that reproduces the problem: link.
Suppose I have this kind of structure of configuration properties:
@Data
@ConfigurationProperties(prefix = "props")
public class ConfigPr...
Chilblain asked 20/12, 2019 at 14:7
1
Solved
I would like to use polymorphic configuration properties on Spring, using Spring's @ConfigurationProperties annotation.
Suppose we have the following POJO classes.
public class Base {
private St...
Phila asked 28/12, 2018 at 18:2
1
© 2022 - 2024 — McMap. All rights reserved.