I have a properties file that I read by spring annotation like this
    @Value("${platform}")
    private String platform;
after I get the platform parameter, I would like to read a second parameter depending on platform parameter value.
    @Value("${url." + platform + ."ws}")
    private String url;
but this gives error, "value for the annotation attribute must be constant expression". since there are lots of parameter changes depending on "platform" value, I am looking for a generic solution.