Skip to content

Instantly share code, notes, and snippets.

@britter
Created March 31, 2016 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save britter/3c5a899f2f0751bfe7816bc32cb5ab7c to your computer and use it in GitHub Desktop.
Save britter/3c5a899f2f0751bfe7816bc32cb5ab7c to your computer and use it in GitHub Desktop.
Result of running run.sh from codecentric/spring-boot-configuration-example
$ ./run.sh
run.sh: Running application without configuration
Application.java: Application initialized with the following configuration:
Application.java: TypeSafeConfiguration{propertyName='null', propertyname='null', property_name='null'}
Application.java: AnnotationConfiguration{propertyDashName='not set', propertyPointName='not set', propertyName='not set', propertyname='not set', property_name='not set'}
run.sh: Running application with environment variables
run.sh: Set the following environment variables:
EXAMPLE_PROPERTY_NAME=EXAMPLE_PROPERTY_NAME
EXAMPLE_PROPERTYNAME=EXAMPLE_PROPERTYNAME
Application.java: Application initialized with the following configuration:
Application.java: TypeSafeConfiguration{propertyName='EXAMPLE_PROPERTY_NAME', propertyname='EXAMPLE_PROPERTYNAME', property_name='null'}
Application.java: AnnotationConfiguration{propertyDashName='not set', propertyPointName='EXAMPLE_PROPERTY_NAME', propertyName='EXAMPLE_PROPERTYNAME', propertyname='EXAMPLE_PROPERTYNAME', property_name='EXAMPLE_PROPERTY_NAME'}
run.sh: Running application with application.properties
run.sh: Wrote ./src/main/resources/application.properties with content:
example.property.name=example.property.name
example.property-name=example.property-name
example.property_name=example.property_name
example.propertyname=example.propertyname
example.propertyName=example.propertyName
Application.java: Application initialized with the following configuration:
Application.java: TypeSafeConfiguration{propertyName='example.propertyName', propertyname='example.propertyname', property_name='example.property-name'}
Application.java: AnnotationConfiguration{propertyDashName='example.property-name', propertyPointName='example.property.name', propertyName='example.propertyName', propertyname='example.propertyname', property_name='example.property_name'}
run.sh: Running application with environment variables and application.properties
run.sh: Set the following environment variables:
EXAMPLE_PROPERTY_NAME=EXAMPLE_PROPERTY_NAME
EXAMPLE_PROPERTYNAME=EXAMPLE_PROPERTYNAME
run.sh: Wrote ./src/main/resources/application.properties with content:
example.property.name=example.property.name
example.property-name=example.property-name
example.property_name=example.property_name
example.propertyname=example.propertyname
example.propertyName=example.propertyName
Application.java: Application initialized with the following configuration:
Application.java: TypeSafeConfiguration{propertyName='EXAMPLE_PROPERTY_NAME', propertyname='EXAMPLE_PROPERTYNAME', property_name='example.property-name'}
Application.java: AnnotationConfiguration{propertyDashName='example.property-name', propertyPointName='EXAMPLE_PROPERTY_NAME', propertyName='EXAMPLE_PROPERTYNAME', propertyname='EXAMPLE_PROPERTYNAME', property_name='EXAMPLE_PROPERTY_NAME'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment