Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
bee6f413
Commit
bee6f413
authored
Feb 25, 2021
by
cprayer
Committed by
Andy Wilkinson
Mar 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Bootstrapper initialize method to fix typo
See gh-25400
parent
ddf75f09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Bootstrapper.java
.../src/main/java/org/springframework/boot/Bootstrapper.java
+11
-0
SpringApplication.java
...main/java/org/springframework/boot/SpringApplication.java
+1
-1
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/Bootstrapper.java
View file @
bee6f413
...
@@ -31,6 +31,17 @@ public interface Bootstrapper {
...
@@ -31,6 +31,17 @@ public interface Bootstrapper {
* Initialize the given {@link BootstrapRegistry} with any required registrations.
* Initialize the given {@link BootstrapRegistry} with any required registrations.
* @param registry the registry to initialize
* @param registry the registry to initialize
*/
*/
default
void
initialize
(
BootstrapRegistry
registry
)
{
intitialize
(
registry
);
}
/**
* Initialize the given {@link BootstrapRegistry} with any required registrations.
* @param registry the registry to initialize
* @deprecated since 2.4.4 in favor of
* {@link Bootstrapper#initialize(BootstrapRegistry)}
*/
@Deprecated
void
intitialize
(
BootstrapRegistry
registry
);
void
intitialize
(
BootstrapRegistry
registry
);
}
}
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
View file @
bee6f413
...
@@ -349,7 +349,7 @@ public class SpringApplication {
...
@@ -349,7 +349,7 @@ public class SpringApplication {
private
DefaultBootstrapContext
createBootstrapContext
()
{
private
DefaultBootstrapContext
createBootstrapContext
()
{
DefaultBootstrapContext
bootstrapContext
=
new
DefaultBootstrapContext
();
DefaultBootstrapContext
bootstrapContext
=
new
DefaultBootstrapContext
();
this
.
bootstrappers
.
forEach
((
initializer
)
->
initializer
.
in
t
itialize
(
bootstrapContext
));
this
.
bootstrappers
.
forEach
((
initializer
)
->
initializer
.
initialize
(
bootstrapContext
));
return
bootstrapContext
;
return
bootstrapContext
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment