public class YamlPropertySourceFactory
extends java.lang.Object
implements org.springframework.core.io.support.PropertySourceFactory
| 构造器和说明 |
|---|
YamlPropertySourceFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.core.env.PropertySource<?> |
createPropertySource(java.lang.String name,
org.springframework.core.io.support.EncodedResource resource) |
private java.util.Properties |
loadYamlIntoProperties(org.springframework.core.io.support.EncodedResource resource) |
public org.springframework.core.env.PropertySource<?> createPropertySource(@Nullable
java.lang.String name,
org.springframework.core.io.support.EncodedResource resource)
throws java.io.IOException
createPropertySource 在接口中 org.springframework.core.io.support.PropertySourceFactoryjava.io.IOExceptionprivate java.util.Properties loadYamlIntoProperties(org.springframework.core.io.support.EncodedResource resource)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionCopyright © 2023. All rights reserved.