For Spring Cloud Stream samples, please refer to the spring-cloud-stream-samples repository on GitHub.
On CloudFoundry services are usually exposed via a special environment variable called VCAP_SERVICES.
When configuring your binder connections, you can use the values from an environment variable as explained on the dataflow cloudfoundry server docs.