Created
March 21, 2023 03:32
-
-
Save kaimz/bafa221c24cbaa1278e63fe25d935831 to your computer and use it in GitHub Desktop.
config.yaml文件读取
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public <T> T fromYAML(InputStream inputStream, Class<T> configType) throws IOException { | |
| String content = resolveEnvParams(new InputStreamReader(inputStream)); | |
| return yamlMapper.readValue(content, configType); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment