Configuration
All configuration is injected via the SPRING_APPLICATION_JSON environment variable in the deployment manifest.
Minimal Required Configuration
{
"spring.profiles.active": "vcapDB",
"app.platform": "SAP",
"auth.server.url": "https://<tenant>.authentication.<region>.hana.ondemand.com",
"ITM_SERVICE_URL": "https://<itm-app-url>",
"db.type": "hana",
"dbInstanceType": "hana",
"userPrincipalKey": "email",
"application-id": 1784
}
Configuration by Profile
Profile: vcapDB
The database is auto-configured from VCAP_SERVICES environment variable.
Steps
- Bind a SAP HANA service instance to the app
- Set
spring.profiles.active=vcapDB CloudDatabaseConfigparsesVCAP_SERVICES
Profile: configDB
Database properties are read from Spring Cloud Config Server or local properties.
Steps
- Set
spring.profiles.active=configDB - Configure config server URL
- Set
spring.application.name=native-workflow-latest
spring.datasource.url=jdbc:sap://<host>:443?encrypt=true&validateCertificate=false
spring.datasource.username=<user>
spring.datasource.password=<password>
spring.datasource.driver-class-name=com.sap.db.jdbc.Driver
Auth Server Configuration
| Platform | Property Values |
|---|---|
| SAP XSUAA | app.platform=SAP |
| Keycloak | app.platform=WORK_ACCESS |
Service-to-Service Token
{
"sap.token.clientid": "<client_id>",
"sap.token.clientsecret": "<client_secret>",
"sap.token.url": "https://<tenant>.authentication.<region>.hana.ondemand.com/oauth/token"
}
Full Production Example
{
"logging.level.root": "INFO",
"spring.profiles.active": "vcapDB",
"app.platform": "SAP",
"application-id": 1784,
"db.type": "hana",
"ITM_SERVICE_URL": "https://cw-caf-iwm-sbx-dev.cfapps.eu10-004.hana.ondemand.com",
"dbInstanceType": "hana",
"userPrincipalKey": "email",
"auth.server.url": "https://incture-cherrywork-dev.authentication.eu10.hana.ondemand.com"
}