Spring Property Injection Concepts: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal=") |
No edit summary |
||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Spring_Framework#Spring_Framework_Core_Technologies_Concepts|Spring Framework]] | |||
=Overview= | |||
This section refers to external data that is provided to the application in form of properties or environment variables, and that potentially modifies the behavior of the application. The component configuration is addressed in the "[[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Configuration_Model|Dependency Injection and Inversion of Control Container Concepts - Configuration Model]]" section. | |||
====application.properties==== | |||
{{Internal|application.properties|application.properties}} | |||
=Application Arguments= | |||
=Environment Variables= | |||
=Profile= | |||
=TODO= | |||
<font color=darkgray> | |||
* How do I read the effective values of all configuration properties during testing and at runtime? | |||
* You can figure out the active profile from within a Spring application by @Autowire-ing org.springframework.core.env.Environment and inspecting it. | |||
</font> |
Revision as of 17:09, 21 November 2018
Internal
Overview
This section refers to external data that is provided to the application in form of properties or environment variables, and that potentially modifies the behavior of the application. The component configuration is addressed in the "Dependency Injection and Inversion of Control Container Concepts - Configuration Model" section.
application.properties
Application Arguments
Environment Variables
Profile
TODO
- How do I read the effective values of all configuration properties during testing and at runtime?
- You can figure out the active profile from within a Spring application by @Autowire-ing org.springframework.core.env.Environment and inspecting it.