-
Notifications
You must be signed in to change notification settings - Fork 40.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply additional sources once when using SpringApplication.from()
Previously, when using SpringApplication.from() any additional sources configured using with() would be applied to every SpringApplication that was created within the scope of the call to run(). This caused problems with Spring Cloud's bootstrap context where the additional sources would be applied to both the user's application and to the boostrap context's application. This commit updates the hook that's used to apply the additional sources so that it's only applied once. This results in the additional sources only being added to the first SpringApplication that is run. Closes gh-35873
- Loading branch information
1 parent
0cfc14e
commit 1652c27
Showing
2 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters