Is there any special configuration required for connecting amazon rds mysql database with a spring boot application which is deployed on PCF(Pivotal Cloud Foundry). when i try to bind via auto-configuration i get error stating unable to acquire jdbc connection.
You have to create a user provider service using cloud foundry commands.
VCAP_SERVICES
from environment variable to use in the application. Create User-Provided Service using below command:
cf cups SERVICE_NAME -p "uri"
URI format should be as given below:
jdbc:mysql://HOST:PORT/SCHEMA_NAME?user=USERNAME&password=PASSWORD
When you will bind this service to your application, Spring Boot will automatically detect the database and wil
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.