Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spring configuration metadata #3553

Merged
merged 4 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,65 @@
{
"properties": [
{
"name": "apollo.accesskey.secret",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.foundation.internals.provider.DefaultApplicationProvider",
"description": "apollo client accessKey.",
vdiskg marked this conversation as resolved.
Show resolved Hide resolved
"defaultValue": ""
},
{
"name": "apollo.autoUpdateInjectedSpringProperties",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.util.ConfigUtil",
"description": "auto update spring placeholder.",
vdiskg marked this conversation as resolved.
Show resolved Hide resolved
"defaultValue": true
},
{
"name": "apollo.bootstrap.enabled",
"type": "java.lang.Boolean",
"sourceType": "com.ctrip.framework.apollo.spring.config.PropertySourcesConstants",
"description": "enable inject namespace in bootstrap phase.",
vdiskg marked this conversation as resolved.
Show resolved Hide resolved
"defaultValue": false
},
{
"name": "apollo.bootstrap.namespaces",
"type": "java.lang.String",
"sourceType": "com.ctrip.framework.apollo.spring.config.PropertySourcesConstants",
"description": "injected namespaces split with ','.",
vdiskg marked this conversation as resolved.
Show resolved Hide resolved
"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.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!."
}
]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about adding more configuration metadata like apollo.cacheDir