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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -