Skip to content

Commit

Permalink
trim掉配置文件中的配置项空格
Browse files Browse the repository at this point in the history
  • Loading branch information
chengn committed Feb 4, 2015
1 parent 55593b0 commit 9d1d707
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/org/sword/wechat4j/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ private Config(){
}
try {
p.load(inStream);
this.url = p.getProperty("wechat.url");
this.encodingAESKey = p.getProperty("wechat.encodingaeskey");
this.token = p.getProperty("wechat.token");
this.appid = p.getProperty("wechat.appid");
this.appSecret = p.getProperty("wechat.appsecret");
this.accessTokenServer = p.getProperty("wechat.accessToken.server.class");
this.jsApiTicketServer = p.getProperty("wechat.ticket.jsapi.server.class");
this.url = p.getProperty("wechat.url").trim();
this.encodingAESKey = p.getProperty("wechat.encodingaeskey").trim();
this.token = p.getProperty("wechat.token").trim();
this.appid = p.getProperty("wechat.appid").trim();
this.appSecret = p.getProperty("wechat.appsecret").trim();
this.accessTokenServer = p.getProperty("wechat.accessToken.server.class").trim();
this.jsApiTicketServer = p.getProperty("wechat.ticket.jsapi.server.class").trim();
inStream.close();
} catch (IOException e) {
logger.error("load wechat4j.properties error,class根目录下找不到wechat4j.properties文件");
Expand Down

0 comments on commit 9d1d707

Please sign in to comment.