Remove hard-coded property values

As of Spring Boot 1.4, IDEs are supposed to provide auto-completion for
hints and enum values. This commit removes the hard-coded copy of
allowed values for enum-based properties. This was mostly the case
already and this commit fixes the few ones remaining.

Closes gh-6654
This commit is contained in:
Stephane Nicoll 2016-08-22 15:39:41 +02:00
parent 98d81110f2
commit c9a3880f27
5 changed files with 8 additions and 10 deletions

View File

@ -33,7 +33,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class JerseyProperties {
/**
* Jersey integration type. Can be either "servlet" or "filter".
* Jersey integration type.
*/
private Type type = Type.SERVLET;

View File

@ -36,8 +36,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class ArtemisProperties {
/**
* Artemis deployment mode, auto-detected by default. Can be explicitly set to
* "native" or "embedded".
* Artemis deployment mode, auto-detected by default.
*/
private ArtemisMode mode;

View File

@ -37,8 +37,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class HornetQProperties {
/**
* HornetQ deployment mode, auto-detected by default. Can be explicitly set to
* "native" or "embedded".
* HornetQ deployment mode, auto-detected by default.
*/
private HornetQMode mode;

View File

@ -121,7 +121,7 @@ content into your application; rather pick only the properties that you need.
spring.messages.fallback-to-system-locale=true # Set whether to fall back to the system Locale if no files for a specific Locale have been found.
# OUTPUT
spring.output.ansi.enabled=detect # Configure the ANSI output (can be "detect", "always", "never").
spring.output.ansi.enabled=detect # Configure the ANSI output.
# PID FILE ({sc-spring-boot-actuator}/system/ApplicationPidFileWriter.{sc-ext}[ApplicationPidFileWriter])
spring.pid.fail-on-write-error= # Fail if ApplicationPidFileWriter is used but it cannot write the PID file.
@ -303,7 +303,7 @@ content into your application; rather pick only the properties that you need.
spring.jersey.filter.order=0 # Jersey filter chain order.
spring.jersey.init.*= # Init parameters to pass to Jersey via the servlet or filter.
spring.jersey.servlet.load-on-startup=-1 # Load on startup priority of the Jersey servlet.
spring.jersey.type=servlet # Jersey integration type. Can be either "servlet" or "filter".
spring.jersey.type=servlet # Jersey integration type.
# SPRING MOBILE DEVICE VIEWS ({sc-spring-boot-autoconfigure}/mobile/DeviceDelegatingViewResolverAutoConfiguration.{sc-ext}[DeviceDelegatingViewResolverAutoConfiguration])
spring.mobile.devicedelegatingviewresolver.enable-fallback=false # Enable support for fallback resolution.
@ -839,7 +839,7 @@ content into your application; rather pick only the properties that you need.
spring.artemis.embedded.server-id= # Server id. By default, an auto-incremented counter is used.
spring.artemis.embedded.topics= # Comma-separated list of topics to create on startup.
spring.artemis.host=localhost # Artemis broker host.
spring.artemis.mode= # Artemis deployment mode, auto-detected by default. Can be explicitly set to "native" or "embedded".
spring.artemis.mode= # Artemis deployment mode, auto-detected by default.
spring.artemis.password= # Login password of the broker.
spring.artemis.port=61616 # Artemis broker port.
spring.artemis.user= # Login user of the broker.
@ -860,7 +860,7 @@ content into your application; rather pick only the properties that you need.
spring.hornetq.embedded.server-id= # Server id. By default, an auto-incremented counter is used.
spring.hornetq.embedded.topics= # Comma-separated list of topics to create on startup.
spring.hornetq.host=localhost # HornetQ broker host.
spring.hornetq.mode= # HornetQ deployment mode, auto-detected by default. Can be explicitly set to "native" or "embedded".
spring.hornetq.mode= # HornetQ deployment mode, auto-detected by default.
spring.hornetq.password= # Login password of the broker.
spring.hornetq.port=5445 # HornetQ broker port.
spring.hornetq.user= # Login user of the broker.

View File

@ -175,7 +175,7 @@
{
"name": "spring.output.ansi.enabled",
"type": "org.springframework.boot.ansi.AnsiOutput$Enabled",
"description": "Configure the ANSI output (can be \"detect\", \"always\", \"never\").",
"description": "Configure the ANSI output.",
"defaultValue": "detect"
},
{