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

codefights smooth sailing ( CommonCharacterCount)

How to remove 8443 port in URL in tomcat