Package com.imyeyu.spring.util
Class YamlPropertySourceFactory
java.lang.Object
com.imyeyu.spring.util.YamlPropertySourceFactory
- All Implemented Interfaces:
org.springframework.core.io.support.PropertySourceFactory
public class YamlPropertySourceFactory
extends Object
implements org.springframework.core.io.support.PropertySourceFactory
Yaml 属性源加载工厂
- Since:
- 2025-10-13 16:29
- Author:
- 夜雨
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource)
-
Constructor Details
-
YamlPropertySourceFactory
public YamlPropertySourceFactory()创建 Yaml 属性源工厂
-
-
Method Details
-
createPropertySource
@NonNull public org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource) throws IOException - Specified by:
createPropertySourcein interfaceorg.springframework.core.io.support.PropertySourceFactory- Throws:
IOException
-