You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check the [Dapr Workflow documentation](https://docs.dapr.io/developing-applications/building-blocks/workflow/workflow-overview/) for more information about how to work with Dapr Workflows.
325
325
326
+
## Using Dapr Cloud Config with Spring Boot
327
+
328
+
To enable dapr cloud config, you should add following properties in your application's config (properties for example):
329
+
330
+
```properties
331
+
# default enable is true, don't need to specify
332
+
dapr.cloudconfig.enabled = true
333
+
spring.config.import[0] = <schema>
334
+
spring.config.import[1] = <schema>
335
+
spring.config.import[2] = <schema>
336
+
#... keep going if you want to import more configs
337
+
```
338
+
339
+
There are other config of the dapr cloud config, listed below:
340
+
341
+
```properties
342
+
#enable dapr cloud config or not (default = true).
343
+
dapr.cloudconfig.enabled=true
344
+
#timeout for getting dapr config (include wait for dapr sidecar) (default = 2000).
345
+
dapr.cloudconfig.timeout=2000
346
+
#whether enable dapr client wait for sidecar, if no response, will throw IOException (default = false).
347
+
dapr.cloudconfig.wait-sidecar-enabled=false
348
+
#retries of dapr client wait for sidecar (default = 3).
349
+
dapr.cloudconfig.wait-sidecar-retries=3
350
+
```
351
+
352
+
In Dapr Cloud Config component, we support two ways to imprt config: Secret Store API and Configuration API.
| doc-type | type of doc |`properties`|`yaml`/`properties`/`or any file extensions you want`|
370
+
371
+
- when type = `value`, if `secret-name` is specified, will treat secret as the value of property, and `secret-name` as the key of property; if none `secret-name` is specified, will get bulk secret and treat every value of secret as the value of property, and every key of secret as the key of property.
372
+
- when type = `doc`, if `secret-name` is specified, will treat secret as a bunch of property, and load it with property or yaml loader; if none `secret-name` is specified, will get bulk secret and and treat every value of secret as bunches of property, and load them with property or yaml loader.
373
+
- secret store with multiValud = true must specify nestedSeparator = ".", and using type = `doc` is not recommanded
374
+
375
+
##### demo
376
+
377
+
###### multiValued = false:
378
+
379
+
####### store content(file secret store as example)
| doc-type | type of doc |`properties`|`yaml`/`properties`/`or any file extensions you want`|
443
+
| subscribe | subscribe this configuration |`false`|`true`/`false`|
444
+
445
+
- when subscribe = `true`, will subscribe update for the configuration.
446
+
- when type = `value`, if `key` is specified, will treat config value as the value of property, and `key` as the key of property; if none `key` is specified, will get all key and value in the `config-name` and treat every config value as the value of property, and every `key` as the key of property.
447
+
- when type = `doc`, if `key` is specified, will treat config value as a bunch of property, and load it with property or yaml loader; if none `key` is specified, will get all key and value in the `config-name` and treat every config value as bunches of property, and load them with property or yaml loader.
0 commit comments