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
b6150705
Commit
b6150705
authored
Jul 25, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3.x'
parents
51862f3c
e8bedacc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
PropertiesConfigurationFactory.java
...ngframework/boot/bind/PropertiesConfigurationFactory.java
+1
-0
EnableConfigurationPropertiesTests.java
...ontext/properties/EnableConfigurationPropertiesTests.java
+14
-0
No files found.
spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java
View file @
b6150705
...
@@ -263,6 +263,7 @@ public class PropertiesConfigurationFactory<T>
...
@@ -263,6 +263,7 @@ public class PropertiesConfigurationFactory<T>
if
(
this
.
conversionService
!=
null
)
{
if
(
this
.
conversionService
!=
null
)
{
dataBinder
.
setConversionService
(
this
.
conversionService
);
dataBinder
.
setConversionService
(
this
.
conversionService
);
}
}
dataBinder
.
setAutoGrowCollectionLimit
(
Integer
.
MAX_VALUE
);
dataBinder
.
setIgnoreNestedProperties
(
this
.
ignoreNestedProperties
);
dataBinder
.
setIgnoreNestedProperties
(
this
.
ignoreNestedProperties
);
dataBinder
.
setIgnoreInvalidFields
(
this
.
ignoreInvalidFields
);
dataBinder
.
setIgnoreInvalidFields
(
this
.
ignoreInvalidFields
);
dataBinder
.
setIgnoreUnknownFields
(
this
.
ignoreUnknownFields
);
dataBinder
.
setIgnoreUnknownFields
(
this
.
ignoreUnknownFields
);
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesTests.java
View file @
b6150705
...
@@ -225,6 +225,20 @@ public class EnableConfigurationPropertiesTests {
...
@@ -225,6 +225,20 @@ public class EnableConfigurationPropertiesTests {
assertThat
(
this
.
context
.
getBean
(
TestProperties
.
class
).
getList
()).
hasSize
(
2
);
assertThat
(
this
.
context
.
getBean
(
TestProperties
.
class
).
getList
()).
hasSize
(
2
);
}
}
@Test
public
void
testCollectionPropertiesBindingWithOver256Elements
()
{
this
.
context
.
register
(
TestConfiguration
.
class
);
List
<
String
>
pairs
=
new
ArrayList
<
String
>();
pairs
.
add
(
"name:foo"
);
for
(
int
i
=
0
;
i
<
1000
;
i
++)
{
pairs
.
add
(
"list["
+
i
+
"]:"
+
i
);
}
TestPropertySourceUtils
.
addInlinedPropertiesToEnvironment
(
this
.
context
,
pairs
.
toArray
(
new
String
[]
{}));
this
.
context
.
refresh
();
assertThat
(
this
.
context
.
getBean
(
TestProperties
.
class
).
getList
()).
hasSize
(
1000
);
}
@Test
@Test
public
void
testPropertiesBindingWithoutAnnotation
()
{
public
void
testPropertiesBindingWithoutAnnotation
()
{
this
.
context
.
register
(
InvalidConfiguration
.
class
);
this
.
context
.
register
(
InvalidConfiguration
.
class
);
...
...
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