"{"type":1,"message":"OK","userinfo":{"UserID":"123456","UserName":"XXX","ExpiryDateTime":"2021-09-09 09:49:08","ExpiryTimestamp":2234234234,"IsSuccess":true,"ErrMsg":null,"Url":"http://.../GetUsername","DomainAccount":"XXX","Email":".....com"}}"
项目情景是得到外部post传来(我们项目的Url即为上面结果中的Url)的token后再回传json格式的token,来得到上面的结果,从而进行一键登录
遇到的主要问题就是因为交流问题,对传来的token的格式不清楚,就写了三种方法来接收三种格式的token
1、json
// @RequestMapping(value = "/GetUsername") // @ResponseBody // public ResData GetUsername(@RequestBody HashMap data,HttpServletResponse resp) { // ResData resData = new ResData(); // logBefore(logger, "接受登陆界面返回的token"); // PageData pd = new PageData(); // List<PageData> Mil