Provide relevant default values for Enums

This commits adds manual metadata for enums that have a default value
since the annotation processor is not able to detect that yet.

Closes gh-7890
This commit is contained in:
Stephane Nicoll
2017-01-16 15:21:05 +01:00
parent c31a2d8101
commit c41ff17dd7
4 changed files with 70 additions and 6 deletions

View File

@@ -7,6 +7,26 @@
"replacement": "server.error.path"
}
},
{
"name": "security.basic.authorize-mode",
"defaultValue": "role"
},
{
"name": "security.headers.content-security-policy-mode",
"defaultValue": "default"
},
{
"name": "security.headers.hsts",
"defaultValue": "all"
},
{
"name": "security.sessions",
"defaultValue": "stateless"
},
{
"name": "server.error.include-stacktrace",
"defaultValue": "never"
},
{
"name": "server.error.whitelabel.enabled",
"type": "java.lang.Boolean",
@@ -60,6 +80,14 @@
"description": "Enable JMX support (if provided by the underlying pool).",
"defaultValue": false
},
{
"name": "spring.data.cassandra.compression",
"defaultValue": "none"
},
{
"name": "spring.data.couchbase.consistency",
"defaultValue": "read-your-own-writes"
},
{
"name": "spring.data.couchbase.repositories.enabled",
"type": "java.lang.Boolean",
@@ -108,6 +136,10 @@
"description": "Enable Redis repositories.",
"defaultValue": true
},
{
"name": "spring.data.rest.detection-strategy",
"defaultValue": "default"
},
{
"name": "spring.data.solr.repositories.enabled",
"type": "java.lang.Boolean",
@@ -129,6 +161,10 @@
"type": "java.lang.String",
"description": "Preferred JSON mapper to use for HTTP message conversion. Set to \"gson\" to force the use of Gson when both it and Jackson are on the classpath."
},
{
"name": "spring.jersey.type",
"defaultValue": "servlet"
},
{
"name": "spring.jmx.default-domain",
"type": "java.lang.String",
@@ -295,12 +331,28 @@
"description": "Enable Spring's HttpPutFormContentFilter.",
"defaultValue": true
},
{
"name": "spring.mvc.locale-resolver",
"defaultValue": "accept-header"
},
{
"name": "spring.rabbitmq.cache.connection.mode",
"defaultValue": "channel"
},
{
"name": "spring.rabbitmq.dynamic",
"type": "java.lang.Boolean",
"description": "Create an AmqpAdmin bean.",
"defaultValue": true
},
{
"name": "spring.session.hazelcast.flush-mode",
"defaultValue": "on-save"
},
{
"name": "spring.session.redis.flush-mode",
"defaultValue": "on-save"
},
{
"name": "spring.social.auto-connection-views",
"type": "java.lang.Boolean",