I currently have my database credentials saved as ENV Variables. But I want to change that so the database will be a backing service.
Env Variables
SPRING_DATASOURCE_driverClassName: oracle.jdbc.OracleDriver
//sample url to mask mine
SPRING_DATASOURCE_URL: jdbc:oracle:thin:@//spring.guru.csi0i9rgj9ws.us-east-1.rds.amazonaws.com:1521/ORC
SPRING_DATASOURCE_USERNAME: UserAdmin
SPRING_DATASOURCE_PASSWORD: p4ssw0rd
SPRING_DATASOURCE_initialize: false
Script above works and have database connection when running on cloud foundry.
_ _ - _ _ - _ _
Here is the script I input in my command prompt, where I create a service and bound it to my application
cf cups OracleTest -p 'username, password, url'
Once I fill out all the credentials, bind my application to the service, and restage my application. I do not receive any database connection.
My Attempt on CF
//for uri I also tried
jdbc:oracle:thin:@//spring.guru.csi0i9rgj9ws.us-east-1.rds.amazonaws.com:1521/ORC
--Do I need some java configuartions along with this?