|
|
@ -129,6 +129,9 @@ might have.
|
|
|
|
and then the Spring Boot banner will not be printed on startup, and the application will
|
|
|
|
and then the Spring Boot banner will not be printed on startup, and the application will
|
|
|
|
not be a web application.
|
|
|
|
not be a web application.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTE: The example above also demonstrates how flexible binding allows the use of
|
|
|
|
|
|
|
|
underscores (`_`) as well as dashes (`-`) in property names.
|
|
|
|
|
|
|
|
|
|
|
|
[[howto-change-the-location-of-external-properties]]
|
|
|
|
[[howto-change-the-location-of-external-properties]]
|
|
|
|
=== Change the location of external properties of an application
|
|
|
|
=== Change the location of external properties of an application
|
|
|
|
By default properties from different sources are added to the Spring `Environment` in a
|
|
|
|
By default properties from different sources are added to the Spring `Environment` in a
|
|
|
@ -738,11 +741,11 @@ For example, using Maven:
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
----
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
Spring Boot has a `LoggingSystem` abstraction that attempts to select a system depending
|
|
|
|
Spring Boot has a `LoggingSystem` abstraction that attempts to configure logging based on
|
|
|
|
on the content of the classpath. If Logback is available it is the first choice. So if
|
|
|
|
the content of the classpath. If Logback is available it is the first choice. So if you
|
|
|
|
you put a `logback.xml` in the root of your classpath it will be picked up from there.
|
|
|
|
put a `logback.xml` in the root of your classpath it will be picked up from there. Spring
|
|
|
|
Spring Boot provides a default base configuration that you can include if you just want
|
|
|
|
Boot provides a default base configuration that you can include if you just want to set
|
|
|
|
to set levels, e.g.
|
|
|
|
levels, e.g.
|
|
|
|
|
|
|
|
|
|
|
|
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
|
|
|
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
|
|
|
----
|
|
|
|
----
|
|
|
|