类 CompositePropertySource


public class CompositePropertySource extends EnumerablePropertySource<Object>
Composite PropertySource implementation that iterates over a set of PropertySource instances. Necessary in cases where multiple property sources share the same name, e.g. when multiple values are supplied to @PropertySource.

instead of plain PropertySource, exposing getPropertyNames() based on the accumulated property names from all contained sources (as far as possible).

从以下版本开始:
4.0
作者:
Chris Beams, Juergen Hoeller, Phillip Webb
  • 构造器详细资料

    • CompositePropertySource

      public CompositePropertySource(String name)
      Create a new CompositePropertySource.
      参数:
      name - the name of the property source
  • 方法详细资料