|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.util.Weixin4jConfigUtil
public class Weixin4jConfigUtil
公众号配置信息 class路径下weixin4j.properties文件
| Field Summary | |
|---|---|
static ClassLoader |
CLASSLOADER
|
| Constructor Summary | |
|---|---|
Weixin4jConfigUtil()
|
|
| Method Summary | |
|---|---|
static String |
getClassPathValue(String key)
判断属性是否存在[classpath:]如果存在则拼接项目路径后返回 一般用于文件的绝对路径获取 |
static String |
getClassPathValue(String key,
String defaultValue)
|
static String |
getValue(String key)
获取weixin4j.properties文件中的key值 |
static String |
getValue(String key,
String defaultValue)
key不存在时则返回传入的默认值 |
static WeixinAccount |
getWeixinAccount()
获取微信账号信息 |
static String |
replaceClassPathValue(String value)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ClassLoader CLASSLOADER
| Constructor Detail |
|---|
public Weixin4jConfigUtil()
| Method Detail |
|---|
public static String getValue(String key)
key -
public static String getValue(String key,
String defaultValue)
key - defaultValue -
public static String getClassPathValue(String key)
key -
public static String getClassPathValue(String key,
String defaultValue)
key - defaultValue -
public static String replaceClassPathValue(String value)
public static WeixinAccount getWeixinAccount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||