How to inject environmental variables inside spring xml configuration?

后端 未结 3 1054
借酒劲吻你
借酒劲吻你 2021-01-30 21:50

AWS talks about System.getProperty(\"JDBC_CONNECTION_STRING\") in http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.managing.html after we s

3条回答
  •  野的像风
    2021-01-30 22:31

    First add a element to your configuration.

    
    

    Then simply use placeholders in your config.

    
        
        
        
        
        
        
        
        
    
    

    Make sure that the placeholder names match your variables you have setup.

提交回复
热议问题