我使用的是WAS Liberty Server容器,它提供了server.xml和server.env文件来配置许多东西,此外还配置了DataSource属性,如url、用户名、密码等。出于安全原因,production Liberty服务器的开发人员不知道这些属性。基本上,在application.properties文件中有类似这样的内容:
spring.datasource.url=dataSourceUrl //dataSourceUrl is set inserver.env
我在java上有一个应用程序,使用jpa(spring-data),我在bluemix上用cf:push构建,一切都没问题。org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.DataSourceCreator.create(DataSourceCreator.java:23)
at org.cloudfoundry.reconfiguration.spring.AbstractCloudServiceBeanFactoryPostProcesso
-Multiple springboot应用程序被部署到IBM liberty 20x上,所有Springboot应用程序都应该从多个属性文件中访问属性。根据参考https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/cwlp_sharedlibrary.html通过在“wlp\usr\