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
b8dc4e74
Commit
b8dc4e74
authored
Mar 09, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate ConfigurationProperties#location
Closes gh-5129
parent
58e8e10a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
ConfigurationProperties.java
...work/boot/context/properties/ConfigurationProperties.java
+4
-0
ConfigurationPropertiesBindingPostProcessor.java
...operties/ConfigurationPropertiesBindingPostProcessor.java
+1
-0
No files found.
spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java
View file @
b8dc4e74
...
...
@@ -90,7 +90,9 @@ public @interface ConfigurationProperties {
* defined in the environment.
* @return the path (or paths) of resources to bind to
* @see #merge()
* @deprecated configure the environment with those additional locations instead
*/
@Deprecated
String
[]
locations
()
default
{};
/**
...
...
@@ -98,7 +100,9 @@ public @interface ConfigurationProperties {
* merged with the default configuration.
* @return the flag value (default true)
* @see #locations()
* @deprecated as {@link #locations()} is deprecated as well
*/
@Deprecated
boolean
merge
()
default
true
;
}
spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java
View file @
b8dc4e74
...
...
@@ -302,6 +302,7 @@ public class ConfigurationPropertiesBindingPostProcessor
return
bean
;
}
@SuppressWarnings
(
"deprecation"
)
private
void
postProcessBeforeInitialization
(
Object
bean
,
String
beanName
,
ConfigurationProperties
annotation
)
{
Object
target
=
bean
;
...
...
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