[英]application level service bindings in cloud foundry for a spring boot app
I have a requirement of binding my spring boot app (which is running on PCF) with mysql service instance of a different microservice. 我需要将我的spring boot应用程序(在PCF上运行)与其他微服务的mysql服务实例绑定。 I believe application level service bindings can help me but I get only a spring cloud stream example here https://docs.spring.io/spring-cloud-dataflow-admin-cloudfoundry/docs/current-SNAPSHOT/reference/html/getting-started-service-binding-at-application-level.html 我相信应用程序级别的服务绑定可以帮助我,但是我在这里仅获得了一个春季云流示例https://docs.spring.io/spring-cloud-dataflow-admin-cloudfoundry/docs/current-SNAPSHOT/reference/html/getting -started-service-binding-at-application-level.html
It would be great if somebody can help me in finding an example of application specifc service binding in pcf for a spring boot app . 如果有人可以帮助我在pcf中为Spring Boot应用程序找到应用程序特定服务绑定的示例,那就太好了。
Thanks, Nilanjan 谢谢,Nilanjan
Nilanjan 尼兰詹
As pointed out in the document you've provided you should look at this in two parts 正如您提供的文档中指出的那样,您应该分两部分进行研究
So, if your microservice name is "bar" and PCF service name is "foo", then the directive for binding such service to your application would be: 因此,如果您的微服务名称是“ bar”,而PCF服务名称是“ foo”,那么将此类服务绑定到您的应用程序的指令将是:
dataflow:>stream deploy --name myFlow --properties "deployer.bar.cloudfoundry.services=foo"
Hope this helps, but let us know if it is still unclear or you need some more information. 希望这会有所帮助,但是如果仍然不清楚或您需要更多信息,请告知我们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.