com.foxinmy.weixin4j.util
Class Weixin4jConfigUtil

java.lang.Object
  extended by com.foxinmy.weixin4j.util.Weixin4jConfigUtil

public class Weixin4jConfigUtil
extends Object

公众号配置信息 class路径下weixin4j.properties文件

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:

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

CLASSLOADER

public static final ClassLoader CLASSLOADER
Constructor Detail

Weixin4jConfigUtil

public Weixin4jConfigUtil()
Method Detail

getValue

public static String getValue(String key)
获取weixin4j.properties文件中的key值

Parameters:
key -
Returns:

getValue

public static String getValue(String key,
                              String defaultValue)
key不存在时则返回传入的默认值

Parameters:
key -
defaultValue -
Returns:

getClassPathValue

public static String getClassPathValue(String key)
判断属性是否存在[classpath:]如果存在则拼接项目路径后返回 一般用于文件的绝对路径获取

Parameters:
key -
Returns:

getClassPathValue

public static String getClassPathValue(String key,
                                       String defaultValue)
Parameters:
key -
defaultValue -
Returns:

replaceClassPathValue

public static String replaceClassPathValue(String value)

getWeixinAccount

public static WeixinAccount getWeixinAccount()
获取微信账号信息

Returns:
微信账号信息


Copyright © 2014–2017. All rights reserved.