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

@ -199,6 +199,14 @@
"description": "Enable git info.",
"defaultValue": true
},
{
"name": "management.info.git.mode",
"defaultValue": "simple"
},
{
"name": "management.security.sessions",
"defaultValue": "stateless"
},
{
"name": "spring.git.properties",
"type": "java.lang.String",

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",

View File

@ -392,13 +392,13 @@ content into your application; rather pick only the properties that you need.
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ # Locations of static resources.
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties])
spring.session.hazelcast.flush-mode= # Sessions flush mode.
spring.session.hazelcast.flush-mode=on-save # Sessions flush mode.
spring.session.hazelcast.map-name=spring:session:sessions # Name of the map used to store sessions.
spring.session.jdbc.initializer.enabled= # Create the required session tables on startup if necessary. Enabled automatically if the default table name is set or a custom schema is configured.
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql # Path to the SQL file to use to initialize the database schema.
spring.session.jdbc.table-name=SPRING_SESSION # Name of database table used to store sessions.
spring.session.mongo.collection-name=sessions # Collection name used to store sessions.
spring.session.redis.flush-mode= # Sessions flush mode.
spring.session.redis.flush-mode=on-save # Sessions flush mode.
spring.session.redis.namespace= # Namespace for keys used to store sessions.
spring.session.store-type= # Session store type.
@ -454,7 +454,7 @@ content into your application; rather pick only the properties that you need.
security.headers.content-security-policy-mode=default # Content security policy mode.
security.headers.content-type=true # Enable "X-Content-Type-Options" header.
security.headers.frame=true # Enable "X-Frame-Options" header.
security.headers.hsts= # HTTP Strict Transport Security (HSTS) mode (none, domain, all).
security.headers.hsts=all # HTTP Strict Transport Security (HSTS) mode (none, domain, all).
security.headers.xss=true # Enable cross site scripting (XSS) protection.
security.ignored= # Comma-separated list of paths to exclude from the default secured paths.
security.require-ssl=false # Enable secure channel for all requests.
@ -548,7 +548,7 @@ content into your application; rather pick only the properties that you need.
# CASSANDRA ({sc-spring-boot-autoconfigure}/cassandra/CassandraProperties.{sc-ext}[CassandraProperties])
spring.data.cassandra.cluster-name= # Name of the Cassandra cluster.
spring.data.cassandra.compression= # Compression supported by the Cassandra binary protocol.
spring.data.cassandra.compression=none # Compression supported by the Cassandra binary protocol.
spring.data.cassandra.connect-timeout-millis= # Socket option: connection time out.
spring.data.cassandra.consistency-level= # Queries consistency level.
spring.data.cassandra.contact-points=localhost # Comma-separated list of cluster node addresses.
@ -709,7 +709,7 @@ content into your application; rather pick only the properties that you need.
spring.jta.atomikos.properties.console-file-count=1 # Number of debug logs files that can be created.
spring.jta.atomikos.properties.console-file-limit=-1 # How many bytes can be stored at most in debug logs files.
spring.jta.atomikos.properties.console-file-name=tm.out # Debug logs file name.
spring.jta.atomikos.properties.console-log-level= # Console log level.
spring.jta.atomikos.properties.console-log-level=warn # Console log level.
spring.jta.atomikos.properties.default-jta-timeout=10000 # Default timeout for JTA transactions.
spring.jta.atomikos.properties.enable-logging=true # Enable disk logging.
spring.jta.atomikos.properties.force-shutdown-on-vm-exit=false # Specify if a VM shutdown should trigger forced shutdown of the transaction core.
@ -927,7 +927,7 @@ content into your application; rather pick only the properties that you need.
spring.rabbitmq.addresses= # Comma-separated list of addresses to which the client should connect.
spring.rabbitmq.cache.channel.checkout-timeout= # Number of milliseconds to wait to obtain a channel if the cache size has been reached.
spring.rabbitmq.cache.channel.size= # Number of channels to retain in the cache.
spring.rabbitmq.cache.connection.mode=CHANNEL # Connection factory cache mode.
spring.rabbitmq.cache.connection.mode=channel # Connection factory cache mode.
spring.rabbitmq.cache.connection.size= # Number of connections to cache.
spring.rabbitmq.connection-timeout= # Connection timeout, in milliseconds; zero for infinite.
spring.rabbitmq.dynamic=true # Create an AmqpAdmin bean.

View File

@ -145,6 +145,10 @@
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
"description": "Config file locations."
},
{
"name": "spring.jta.atomikos.properties.console-log-level",
"defaultValue": "warn"
},
{
"name": "spring.main.banner-mode",
"type": "org.springframework.boot.Banner$Mode",