Skip to content

Commit

Permalink
add spring configuration metadata to offer IDE contextual help (apoll…
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiskg authored Feb 23, 2021
1 parent 8613ee5 commit 0a7b760
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apollo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
<artifactId>spring-boot-autoconfigure</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- test -->
<dependency>
<groupId>org.eclipse.jetty</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"properties": [
{
"name": "apollo.accesskey.secret",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.foundation.internals.provider.DefaultApplicationProvider",
"description": "apollo client access key.",
"defaultValue": ""
},
{
"name": "apollo.autoUpdateInjectedSpringProperties",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.util.ConfigUtil",
"description": "whether to auto update spring placeholder or not.",
"defaultValue": true
},
{
"name": "apollo.bootstrap.enabled",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.spring.config.PropertySourcesConstants",
"description": "enable injecting namespaces in bootstrap phase.",
"defaultValue": false
},
{
"name": "apollo.bootstrap.namespaces",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.apollo.spring.config.PropertySourcesConstants",
"description": "namespaces to be injected during bootstrap phase, multiple namespaces should be comma-separated.",
"defaultValue": "application"
},
{
"name": "apollo.bootstrap.eagerLoad.enabled",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.spring.config.PropertySourcesConstants",
"description": "enable apollo initialization before logging system initialization.",
"defaultValue": false
},
{
"name": "apollo.cacheDir",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.apollo.util.ConfigUtil",
"description": "local cache directory. the default value on windows is 'c:\\opt\\data', while on mac/linux is '/opt/data'.",
"defaultValue": "/opt/data"
},
{
"name": "apollo.cluster",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.apollo.core.ConfigConsts",
"description": "cluster name.",
"defaultValue": "default"
},
{
"name": "apollo.meta",
"type": "java.net.URI",
"sourceType": "com.ctrip.framework.apollo.core.ConfigConsts",
"description": "apollo meta server address."
},
{
"name": "apollo.property.order.enable",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.util.factory.PropertiesFactory",
"description": "enable property order.",
"defaultValue": false
},
{
"name": "app.id",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.foundation.spi.provider.ApplicationProvider",
"description": "apollo client app id. if it's empty apollo will only load public namespace configurations!."
}
]
}

0 comments on commit 0a7b760

Please sign in to comment.