• Phillip Webb's avatar
    Add a defaultValue attribute to config meta-data · c73adcd1
    Phillip Webb authored
    Update `ConfigurationMetadataAnnotationProcessor` to include the
    'defaultValue' of a property when possible. For example the
    'defaultValue' or 'server.port' is '8080'.
    
    Default values are detected by inspecting the field assignments of
    @ConfigurationProperties items. In order to detect field values some
    internals of the Java compiler are used. To save a dependency on
    'tools.jar' internal javac classes are accessed using reflection.
    
    See gh-1001
    c73adcd1
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...