Merge branch 'test' into patch-dependency

yun-zuoyi
nies 3 years ago
commit f7f4a59927

@ -42,6 +42,8 @@ import cn.estsh.impp.framework.boot.license.serviceimpl.ImppLicenseDecoder;
import cn.estsh.impp.framework.boot.util.*;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.parser.ParserConfig;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenRequest;
import com.aliyun.dingtalkoauth2_1_0.models.GetAccessTokenResponse;
import com.aliyun.dingtalkrobot_1_0.models.BatchSendOTOHeaders;
@ -1068,6 +1070,38 @@ public class WhiteController extends CoreBaseController {
}
/**
* fastJosn
* @return
*/
@GetMapping(value = "/fastjson")
@ApiOperation(value = "获取fastJosn配置", notes = "获取fastJosn配置")
public ResultBean getFastJosnConfig() {
ParserConfig config = ParserConfig.getGlobalInstance();
SysUser model = new SysUser();
model.setUserLoginName("test");
Map<String, Object> resultMap = new HashMap<>();
try {
String json = JSON.toJSONString(model, SerializerFeature.WriteClassName);
resultMap.put("json",json);
JSON.parse(json);
resultMap.put("parseredJosn",json);
resultMap.put("config",JSON.toJSONString(config));
} catch (Exception e) {
e.printStackTrace();
if (e.getCause() != null){
resultMap.put("error",e.getCause().getMessage());
}else {
resultMap.put("error",e.getMessage());
}
}
return ResultBean.success().setResultMap(resultMap);
}
private static final Long ACCESS_TOKEN_EXPIRE_TIME = 7080L;
private static final String ACCESS_TOKEN_KEY = "ding_talk:access_token";

@ -296,12 +296,19 @@
</dependency>
<!-- json -->
<!-- <dependency>-->
<!-- <groupId>com.alibaba</groupId>-->
<!-- <artifactId>fastjson</artifactId>-->
<!-- <version>1.2.8</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.8</version>
<version>1.2.80</version>
</dependency>
<!-- ehcache -->
<dependency>
<groupId>net.sf.ehcache</groupId>

Loading…
Cancel
Save