File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .common .util .xml ;
2
2
3
3
import com .thoughtworks .xstream .XStream ;
4
+ import com .thoughtworks .xstream .converters .reflection .PureJavaReflectionProvider ;
4
5
import com .thoughtworks .xstream .core .util .QuickWriter ;
5
6
import com .thoughtworks .xstream .io .HierarchicalStreamWriter ;
6
7
import com .thoughtworks .xstream .io .xml .PrettyPrintWriter ;
13
14
public class XStreamInitializer {
14
15
15
16
public static XStream getInstance () {
16
- XStream xstream = new XStream (new XppDriver () {
17
+ XStream xstream = new XStream (new PureJavaReflectionProvider (), new XppDriver () {
17
18
18
19
@ Override
19
20
public HierarchicalStreamWriter createWriter (Writer out ) {
@@ -42,6 +43,7 @@ public String encodeNode(String name) {
42
43
};
43
44
}
44
45
});
46
+
45
47
xstream .ignoreUnknownElements ();
46
48
xstream .setMode (XStream .NO_REFERENCES );
47
49
xstream .addPermission (NullPermission .NULL );
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public interface WxMpService {
90
90
* 获取access_token,本方法线程安全
91
91
* 且在多线程同时刷新时只刷新一次,避免超出2000次/日的调用次数上限
92
92
*
93
- * 另:本service的所有方法都会在access_token过期是调用此方法
93
+ * 另:本service的所有方法都会在access_token过期时调用此方法
94
94
*
95
95
* 程序员在非必要情况下尽量不要主动调用此方法
96
96
*
You can’t perform that action at this time.
0 commit comments