public class YamlPropertySourceFactory
extends org.springframework.core.io.support.DefaultPropertySourceFactory
for help use annotation PropertySource
{@code| 构造器和说明 |
|---|
YamlPropertySourceFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.core.env.PropertySource<?> |
createPropertySource(String name,
org.springframework.core.io.support.EncodedResource resource) |
static Properties |
loadYml(org.springframework.core.io.Resource resource) |
public org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource) throws IOException
createPropertySource 在接口中 org.springframework.core.io.support.PropertySourceFactorycreatePropertySource 在类中 org.springframework.core.io.support.DefaultPropertySourceFactoryIOExceptionpublic static Properties loadYml(org.springframework.core.io.Resource resource)
Copyright © 2024. All rights reserved.