mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
修复中文乱码问题
This commit is contained in:
@@ -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校验
|
||||
|
Reference in New Issue
Block a user