I have following configuration class:
@Configuration
@PropertySource(name = \"props\", value = \"classpath:/app-config.properties\")
@ComponentScan(\"service
That looks mighty complicated, can't you just do
then in code reference:
@Value("${myProperty}")
private String myString;
@Value("${myProperty.two}")
private String myStringTwo;
where some.properties looks something like this
myProperty = whatever
myProperty.two = something else\
that consists of multiline string
For java based config you can do this
@Configuration
@PropertySource(value="classpath:some.properties")
public class SomeService {
And then just inject using @value
as before