Browse Source

Merge branch '2.2.x'

Closes gh-19574
pull/19578/head
Andy Wilkinson 6 years ago
parent
commit
4efd8ba587
  1. 6
      spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/AutoTimer.java
  2. 9
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/LazyInitializationExcludeFilter.java

6
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/AutoTimer.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@ -68,7 +68,7 @@ public interface AutoTimer { @@ -68,7 +68,7 @@ public interface AutoTimer {
/**
* Factory method to create a new {@link Builder Timer.Builder} with auto-timer
* settings {@link #apply(Builder) applied}.
* settings {@link #apply(Timer.Builder) applied}.
* @param name the name of the timer
* @return a new builder instance with auto-settings applied
*/
@ -78,7 +78,7 @@ public interface AutoTimer { @@ -78,7 +78,7 @@ public interface AutoTimer {
/**
* Factory method to create a new {@link Builder Timer.Builder} with auto-timer
* settings {@link #apply(Builder) applied}.
* settings {@link #apply(Timer.Builder) applied}.
* @param supplier the builder supplier
* @return a new builder instance with auto-settings applied
*/

9
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/LazyInitializationExcludeFilter.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@ -29,13 +29,12 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition; @@ -29,13 +29,12 @@ import org.springframework.beans.factory.support.AbstractBeanDefinition;
* beans). Adding an instance of this filter to the application context can be used for
* these edge cases.
* <p>
* A typical example would be something like this:
* <p>
* <pre><code>
* A typical example would be something like this: <pre>
* &#64;Bean
* public static LazyInitializationExcludeFilter integrationLazyInitializationExcludeFilter() {
* return LazyInitializationExcludeFilter.forBeanTypes(IntegrationFlow.class);
* }</code></pre>
* }
* </pre>
* <p>
* NOTE: Beans of this type will be instantiated very early in the spring application
* lifecycle so they should generally be declared static and not have any dependencies.

Loading…
Cancel
Save