Skip to content

Commit

Permalink
Merge pull request #25266 from izeye
Browse files Browse the repository at this point in the history
* pr/25266:
  Update copyright of changes files
  Polish

Closes gh-25266
  • Loading branch information
snicoll committed Feb 14, 2021
2 parents 3471adc + 61e9d04 commit 659ecd0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,7 +47,7 @@ void lifecycleProcessorIsConfiguredWithDefaultTimeout() {
}

@Test
void lifecycleProcessorIsConfiguredWithCustomDefaultTimeout() {
void lifecycleProcessorIsConfiguredWithCustomTimeout() {
this.contextRunner.withPropertyValues("spring.lifecycle.timeout-per-shutdown-phase=15s").run((context) -> {
assertThat(context).hasBean(AbstractApplicationContext.LIFECYCLE_PROCESSOR_BEAN_NAME);
Object processor = context.getBean(AbstractApplicationContext.LIFECYCLE_PROCESSOR_BEAN_NAME);
Expand All @@ -56,7 +56,7 @@ void lifecycleProcessorIsConfiguredWithCustomDefaultTimeout() {
}

@Test
void lifecycleProcessorIsConfiguredWithCustomDefaultTimeoutInAChildContext() {
void lifecycleProcessorIsConfiguredWithCustomTimeoutInAChildContext() {
new ApplicationContextRunner().run((parent) -> {
this.contextRunner.withParent(parent).withPropertyValues("spring.lifecycle.timeout-per-shutdown-phase=15s")
.run((child) -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@
/**
* Strategy interface used to determine when a changed classpath file should trigger a
* full application restart. For example, static web resources might not require a full
* restart where as class files would.
* restart whereas class files would.
*
* @author Phillip Webb
* @since 1.3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ This means that the JSON cannot override properties from lower order property so


[[boot-features-external-config-files]]
=== External Application Properties [[boot-features-external-config-application-property-files]]
=== External Application Properties [[boot-features-external-config-application-property-files]]
Spring Boot will automatically find and load `application.properties` and `application.yaml` files from the following locations when your application starts:

. The classpath root
Expand Down Expand Up @@ -691,7 +691,7 @@ This might result in two separate `application.properties` files mounted at diff
In such a case, having a wildcard location of `config/*/`, will result in both files being processed.

By default, Spring Boot includes `config/*/` in the default search locations.
The means that all subdirectories of the `/config` directory outside of your jar will be searched.
It means that all subdirectories of the `/config` directory outside of your jar will be searched.

You can use wildcard locations yourself with the `spring.config.location` and `spring.config.additional-location` properties.

Expand Down Expand Up @@ -1519,7 +1519,7 @@ The properties above will bind to a `Map` with `/key1`, `/key2` and `key3` as th
The slash has been removed from `key3` because it wasn't surrounded by square brackets.

You may also occasionally need to use the bracket notation if your `key` contains a `.` and you are binding to non-scalar value.
For example, binding `a.b=c` to `Map<String, Object>` will return a Map with the entry `{"a"={"b"="c"}}` where as `[a.b]=c` will return a Map with the entry `{"a.b"="c"}`.
For example, binding `a.b=c` to `Map<String, Object>` will return a Map with the entry `{"a"={"b"="c"}}` whereas `[a.b]=c` will return a Map with the entry `{"a.b"="c"}`.



Expand Down Expand Up @@ -2574,7 +2574,7 @@ If you want to take complete control of Spring MVC, you can add your own `@Confi
[NOTE]
====
Spring MVC uses a different `ConversionService` to the one used to convert values from your `application.properties` or `application.yaml` file.
The means that `Period`, `Duration` and `DataSize` converters are not available and that `@DurationUnit` and `@DataSizeUnit` annotations will be ignored.
It means that `Period`, `Duration` and `DataSize` converters are not available and that `@DurationUnit` and `@DataSizeUnit` annotations will be ignored.
If you want to customize the `ConversionService` used by Spring MVC, you can provide a `WebMvcConfigurer` bean with an `addFormatters` method.
From this method you can register any converter that you like, or you can delegate to the static methods available on `ApplicationConversionService`.
Expand Down

0 comments on commit 659ecd0

Please sign in to comment.