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
a0087170
Commit
a0087170
authored
May 30, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
18d76349
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
ThymeleafAutoConfiguration.java
...t/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
+1
-1
BeanDefinitionLoader.java
...n/java/org/springframework/boot/BeanDefinitionLoader.java
+2
-4
PropertySourcesLoader.java
...a/org/springframework/boot/env/PropertySourcesLoader.java
+1
-1
SpringApplicationTests.java
...java/org/springframework/boot/SpringApplicationTests.java
+1
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
View file @
a0087170
...
@@ -87,7 +87,7 @@ public class ThymeleafAutoConfiguration {
...
@@ -87,7 +87,7 @@ public class ThymeleafAutoConfiguration {
}
}
@Bean
@Bean
public
I
TemplateResolver
defaultTemplateResolver
()
{
public
TemplateResolver
defaultTemplateResolver
()
{
TemplateResolver
resolver
=
new
TemplateResolver
();
TemplateResolver
resolver
=
new
TemplateResolver
();
resolver
.
setResourceResolver
(
thymeleafResourceResolver
());
resolver
.
setResourceResolver
(
thymeleafResourceResolver
());
resolver
.
setPrefix
(
this
.
properties
.
getPrefix
());
resolver
.
setPrefix
(
this
.
properties
.
getPrefix
());
...
...
spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java
View file @
a0087170
...
@@ -54,8 +54,6 @@ import org.springframework.util.StringUtils;
...
@@ -54,8 +54,6 @@ import org.springframework.util.StringUtils;
*/
*/
class
BeanDefinitionLoader
{
class
BeanDefinitionLoader
{
private
static
final
ResourceLoader
DEFAULT_RESOURCE_LOADER
=
new
PathMatchingResourcePatternResolver
();
private
final
Object
[]
sources
;
private
final
Object
[]
sources
;
private
final
AnnotatedBeanDefinitionReader
annotatedReader
;
private
final
AnnotatedBeanDefinitionReader
annotatedReader
;
...
@@ -228,8 +226,8 @@ class BeanDefinitionLoader {
...
@@ -228,8 +226,8 @@ class BeanDefinitionLoader {
}
}
private
Resource
[]
findResources
(
String
source
)
{
private
Resource
[]
findResources
(
String
source
)
{
ResourceLoader
loader
=
this
.
resourceLoader
!=
null
?
this
.
resourceLoader
ResourceLoader
loader
=
(
this
.
resourceLoader
!=
null
?
this
.
resourceLoader
:
DEFAULT_RESOURCE_LOADER
;
:
new
PathMatchingResourcePatternResolver
())
;
try
{
try
{
if
(
loader
instanceof
ResourcePatternResolver
)
{
if
(
loader
instanceof
ResourcePatternResolver
)
{
return
((
ResourcePatternResolver
)
loader
).
getResources
(
source
);
return
((
ResourcePatternResolver
)
loader
).
getResources
(
source
);
...
...
spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java
View file @
a0087170
...
@@ -62,7 +62,7 @@ public class PropertySourcesLoader {
...
@@ -62,7 +62,7 @@ public class PropertySourcesLoader {
Assert
.
notNull
(
propertySources
,
"PropertySources must not be null"
);
Assert
.
notNull
(
propertySources
,
"PropertySources must not be null"
);
this
.
propertySources
=
propertySources
;
this
.
propertySources
=
propertySources
;
this
.
loaders
=
SpringFactoriesLoader
.
loadFactories
(
PropertySourceLoader
.
class
,
this
.
loaders
=
SpringFactoriesLoader
.
loadFactories
(
PropertySourceLoader
.
class
,
null
);
getClass
().
getClassLoader
()
);
}
}
/**
/**
...
...
spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java
View file @
a0087170
...
@@ -767,4 +767,5 @@ public class SpringApplicationTests {
...
@@ -767,4 +767,5 @@ public class SpringApplicationTests {
}
}
}
}
}
}
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