Spring Properties get in class

test.properties
application.file.home = fileHomeString
spring.xml


      
        classpath:/properties/test.properties
      


Bean class
public PropertyTest class{

  @Value("${" + "application.file.home" + "}")
  private String propertiValue;

}

Comments

Popular posts from this blog

Project euler 169 found clue

Floyd-Warshall's algorithm