Merge branch '2.2.x' into 2.3.x

Closes gh-22339
This commit is contained in:
Andy Wilkinson
2020-07-15 10:49:01 +01:00
4 changed files with 33 additions and 4 deletions

View File

@@ -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.
@@ -22,9 +22,18 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
/**
* Hint for that an {@link EnableAutoConfiguration auto-configuration} should be applied
* after other specified auto-configuration classes.
* <p>
* As with standard {@link Configuration @Configuration} classes, the order in which
* auto-configuration classes are applied only affects the order in which their beans are
* defined. The order in which those beans are subsequently created is unaffected and is
* determined by each bean's dependencies and any {@link DependsOn @DependsOn}
* relationships.
*
* @author Phillip Webb
* @since 1.0.0

View File

@@ -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.
@@ -22,9 +22,18 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
/**
* Hint for that an {@link EnableAutoConfiguration auto-configuration} should be applied
* Hint that an {@link EnableAutoConfiguration auto-configuration} should be applied
* before other specified auto-configuration classes.
* <p>
* As with standard {@link Configuration @Configuration} classes, the order in which
* auto-configuration classes are applied only affects the order in which their beans are
* defined. The order in which those beans are subsequently created is unaffected and is
* determined by each bean's dependencies and any {@link DependsOn @DependsOn}
* relationships.
*
* @author Phillip Webb
* @since 1.0.0

View File

@@ -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.
@@ -23,6 +23,8 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
@@ -31,6 +33,12 @@ import org.springframework.core.annotation.Order;
* annotation. Allows auto-configuration classes to be ordered among themselves without
* affecting the order of configuration classes passed to
* {@link AnnotationConfigApplicationContext#register(Class...)}.
* <p>
* As with standard {@link Configuration @Configuration} classes, the order in which
* auto-configuration classes are applied only affects the order in which their beans are
* defined. The order in which those beans are subsequently created is unaffected and is
* determined by each bean's dependencies and any {@link DependsOn @DependsOn}
* relationships.
*
* @author Andy Wilkinson
* @since 1.3.0