类 MutableMapPropertySource


public class MutableMapPropertySource extends MapPropertySource
Mutable MapPropertySource

Simple PropertySource implementation for modify property. Accepts a user-provided Map object, or if omitted during construction, the implementation will initialize its own. The setProperty(java.lang.String, java.lang.Object) and withProperty(java.lang.String, java.lang.Object) methods are exposed for convenience, for example:

 
   PropertySource<?> source = new MutableMapPropertySource().withProperty("foo", "bar");
 
 
从以下版本开始:
4.0
作者:
Harry Yang 2021/10/11 15:20