修复中文乱码问题

This commit is contained in:
tanghc
2019-08-13 15:28:44 +08:00
parent aabc7b90a7
commit aa2b399ca8
6 changed files with 315 additions and 114 deletions

View File

@@ -1,5 +1,6 @@
package com.gitee.sop.storyweb.controller;
import com.alibaba.fastjson.JSON;
import com.gitee.sop.servercommon.annotation.ApiAbility;
import com.gitee.sop.servercommon.annotation.ApiMapping;
import com.gitee.sop.servercommon.bean.OpenContext;
@@ -147,6 +148,19 @@ public class AlipayController {
return story2;
}
/**
* 验证字符串乱码问题
* @param param
* @return
*/
@ApiMapping(value = "story.string.get", version = "1.0")
public String string(Story param) {
Story story2 = new Story();
story2.setId(1);
story2.setName("海底小纵队");
return JSON.toJSONString(story2);
}
/**
* 参数绑定
* @param story 对应biz_content中的内容并自动JSR-303校验