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
ea30c096
Commit
ea30c096
authored
Jun 25, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
16263e34
See gh-22105
parent
263adf1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
BeanDefinitionLoader.java
...n/java/org/springframework/boot/BeanDefinitionLoader.java
+7
-5
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java
View file @
ea30c096
...
...
@@ -159,18 +159,20 @@ class BeanDefinitionLoader {
}
}
private
int
load
(
Resource
source
)
{
private
void
load
(
Resource
source
)
{
if
(
source
.
getFilename
().
endsWith
(
".groovy"
))
{
if
(
this
.
groovyReader
==
null
)
{
throw
new
BeanDefinitionStoreException
(
"Cannot load Groovy beans without Groovy on classpath"
);
}
return
this
.
groovyReader
.
loadBeanDefinitions
(
source
);
this
.
groovyReader
.
loadBeanDefinitions
(
source
);
}
else
{
this
.
xmlReader
.
loadBeanDefinitions
(
source
);
}
return
this
.
xmlReader
.
loadBeanDefinitions
(
source
);
}
private
int
load
(
Package
source
)
{
return
this
.
scanner
.
scan
(
source
.
getName
());
private
void
load
(
Package
source
)
{
this
.
scanner
.
scan
(
source
.
getName
());
}
private
void
load
(
CharSequence
source
)
{
...
...
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