Hi,
i want to connect postgres database in inorder to read some data, currently i am connecting to database using application.properties file.
But I need to connect to data base using cumulocity json file.
please provide me with the code or sample springboot project.
This does not make any sense for the following reasons:
the applications.properties is the properties file for the application
cumulocity.json is a manifest file only used by the platform and does not contain any properties used by the application
Hi @Stefan_Witschel ,
i i want read the data which is declared in cumulocity.json file. in java springboot application
I have the following data in cumulocity.json file.
“settings”: [
{
“key”: “xyz”,
“defaultValue”: “xyzabc”
}
],
i want to read default value using the key. in java springboot microservice.
help me with this
They are persisted on initial deployment in the Tenant Options.
You can read them there as well on startup:
https://cumulocity.com/api/core/10.17.0/#operation/getOptionCollectionResource
Just to clarify some misassumption: You don’t need to connect to any database, you just need to access the API which is part of the SDK.
system
(system)
Closed
April 15, 2024, 12:57pm
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.