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
2da1d37e
Commit
2da1d37e
authored
Jul 06, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add profile name provider
parent
162cbdd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
appendix-configuration-metadata.adoc
...cs/src/main/asciidoc/appendix-configuration-metadata.adoc
+29
-0
No files found.
spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc
View file @
2da1d37e
...
@@ -361,6 +361,10 @@ The table below summarizes the list of supported providers:
...
@@ -361,6 +361,10 @@ The table below summarizes the list of supported providers:
|`spring-bean-reference`
|`spring-bean-reference`
|Auto-complete the available bean names in the current project. Usually constrained
|Auto-complete the available bean names in the current project. Usually constrained
by a base class that is specified via the `target` parameter.
by a base class that is specified via the `target` parameter.
|`spring-profile-name`
|Auto-complete the available profile names in the project.
|===
|===
...
@@ -592,6 +596,31 @@ that defines the name of the `MBeanServer` bean to use:
...
@@ -592,6 +596,31 @@ that defines the name of the `MBeanServer` bean to use:
]}
]}
----
----
NOTE: The binder is not aware of the meta-data so if you provide that hint, you
will still need to transform the bean name into an actual Bean reference using
the `ApplicationContext`.
===== Spring profile name
The **spring-profile-name** provider auto-completes the Spring profiles that are
defined in the configuration of the current project.
The meta-data snippet below corresponds to the standard `spring.profiles.active`
property that defines the name of the Spring profile(s) to enable:
[source,json,indent=0]
----
{"hints": [
{
"name": "spring.profiles.active",
"providers": [
{
"name": "spring-profile-name"
}
]
}
]}
----
[[configuration-metadata-annotation-processor]]
[[configuration-metadata-annotation-processor]]
...
...
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