作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider.<init>()
方法的一些代码示例,展示了YamlBasedPropertiesProvider.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlBasedPropertiesProvider.<init>()
方法的具体详情如下:
包路径:org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider
类名称:YamlBasedPropertiesProvider
方法名:<init>
暂无
代码示例来源:origin: cfg4j/cfg4j
/**
* Construct {@link ConfigurationSource} backed by files. File paths should by provided by
* {@link ConfigFilesProvider} and will be treated as relative paths to the environment provided in
* {@link #getConfiguration(Environment)} calls (see corresponding javadoc for detail). Configuration
* file type is detected using file extension (see {@link PropertiesProviderSelector}).
*
* @param configFilesProvider {@link ConfigFilesProvider} supplying a list of configuration files to use
*/
public FilesConfigurationSource(ConfigFilesProvider configFilesProvider) {
this(configFilesProvider, new PropertiesProviderSelector(
new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
));
}
代码示例来源:origin: cfg4j/cfg4j
/**
* Construct {@link ConfigurationSource} backed by classpath files. File paths should by provided by
* {@link ConfigFilesProvider} and will be treated as relative paths to the environment provided in
* {@link #getConfiguration(Environment)} calls (see corresponding javadoc for detail). Configuration
* file type is detected using file extension (see {@link PropertiesProviderSelector}).
*
* @param configFilesProvider {@link ConfigFilesProvider} supplying a list of configuration files to use
*/
public ClasspathConfigurationSource(ConfigFilesProvider configFilesProvider) {
this(configFilesProvider, new PropertiesProviderSelector(
new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
));
}
代码示例来源:origin: cfg4j/cfg4j
@BeforeEach
void setUp() {
provider = new YamlBasedPropertiesProvider();
}
代码示例来源:origin: cfg4j/cfg4j
/**
* Construct {@link GitConfigurationSource}s builder
* <p>
* Default setup (override using with*() methods)
* <ul>
* <li>BranchResolver: {@link FirstTokenBranchResolver}</li>
* <li>PathResolver: {@link AllButFirstTokenPathResolver}</li>
* <li>ConfigFilesProvider: {@link DefaultConfigFilesProvider}</li>
* <li>tmpPath: System.getProperty("java.io.tmpdir")</li>
* <li>tmpRepoPrefix: "cfg4j-config-git-config-repository"</li>
* <li>propertiesProviderSelector: {@link PropertiesProviderSelector} with {@link PropertyBasedPropertiesProvider}
* and {@link YamlBasedPropertiesProvider} providers</li>
* </ul>
*/
public GitConfigurationSourceBuilder() {
branchResolver = new FirstTokenBranchResolver();
pathResolver = new AllButFirstTokenPathResolver();
tmpPath = Paths.get(System.getProperty("java.io.tmpdir"));
tmpRepoPrefix = "cfg4j-git-config-repository";
configFilesProvider = new DefaultConfigFilesProvider();
propertiesProviderSelector = new PropertiesProviderSelector(
new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
);
}
本文整理了Java中org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider.()方法的一些代码示例,展示了Yam
我是一名优秀的程序员,十分优秀!