cloudfoundry-samples/hello-spring-cloud

app won't connect to DB

Closed this issue · 2 comments

mvn package
cf push

Results in:
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon May 01 14:35:55 UTC 2017
There was an unexpected error (type=Internal Server Error, status=500).
Failed to authenticate to database [CloudFoundry_8qq9og8g_53o2fv6c], username = [CloudFoundry_8qq9og8g_53o2fv6c_406ioqtj], password = [E******************************A]

@choman I've update the app to use the latest versions of Spring Boot, Spring Cloud Connectors, etc. Please update, re-build, and re-push. I also added a README that describes how to create and bind service instances to the app.

If you still have problems, please comment here and include the details of any services you have bound to the application and what Cloud Foundry environment you are deploying to.

@scottfrederick Based on the updates, all seems to work find. README was a big help, thanks for throwing it together. It saved me writing up another issue ;) - cheers