public class ClassPathResource extends RefreshingResource
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
charset |
private ClassLoader |
loader |
private String[] |
names |
private static long |
serialVersionUID |
| 构造器和说明 |
|---|
ClassPathResource(String... names) |
ClassPathResource(String[] names,
ClassLoader loader) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,String> |
getConfig() |
void |
setCharset(String charset) |
getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, getString, getString, onChange, refresh, refresh, store, store, toMap, toMap, toStringprivate static final long serialVersionUID
private final String[] names
private final ClassLoader loader
private String charset
public ClassPathResource(String... names)
public ClassPathResource(String[] names, ClassLoader loader)
protected Map<String,String> getConfig() throws IOException
getConfig 在类中 RefreshingResourceIOExceptionpublic void setCharset(String charset)
Copyright © 2020. All rights reserved.