spring - Initializing constants class from resource file: possible? -
i know can put resources in properties file , associate class attributes values with:
@value("${batch-size}") private integer batchsize; those values, however, not constants wondering if possible attain that:
public class runtimeconstants{ @value("${batch-size}") private static final integer batchsize; //this gives me compiler error java //expects attribute initialized in way }
Comments
Post a Comment