public class ClasspathJSONLoader extends ReaderJSONLoader
JSON 配置文件加载器
这个加载器专门用来加载类路径下的 json 配置文件,并返回 Map 集合
JSON file loader
This loader is used to load json file in classpath
Email: fishinlove@163.com
created by 2019/04/22 19:05:11
| 构造器和说明 |
|---|
ClasspathJSONLoader(java.lang.String resourceFileName)
根据资源文件名称构建
Construct with resource file
|
ClasspathJSONLoader(java.lang.String resourceFileName,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
|
ClasspathJSONLoader(java.lang.String resourceFileName,
java.lang.String namespace)
根据资源文件名称构建
Construct with resource file
|
ClasspathJSONLoader(java.lang.String resourceFileName,
java.lang.String namespace,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
|
namespaceloadpublic ClasspathJSONLoader(java.lang.String resourceFileName)
根据资源文件名称构建
Construct with resource file
resourceFileName - 资源文件名称
resource file
public ClasspathJSONLoader(java.lang.String resourceFileName,
java.lang.String namespace)
根据资源文件名称构建
Construct with resource file
resourceFileName - 资源文件名称
resource file
namespace - 指定的命名空间
Appointed namespace
public ClasspathJSONLoader(java.lang.String resourceFileName,
java.lang.String namespace,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
resourceFileName - 资源文件名称
resource file
namespace - 指定的命名空间
Appointed namespace
charset - 读取资源的字符集
The charset of this resource
public ClasspathJSONLoader(java.lang.String resourceFileName,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
resourceFileName - 资源文件名称
resource file
charset - 读取资源的字符集
The charset of this resource
Copyright © 2019. All Rights Reserved.