Commit 4486058a by lixiaozhong

添加actionMapping,将websocket的服务写法模仿springmvc。提交一个示例

parent a7892caa
......@@ -14,6 +14,38 @@ import java.util.Map;
import java.util.Set;
/**
* 这是一个示例,前端websocket的写法:
{
"reqId":"123123123",
"action":"/sendtest/gogo",
"hello":"我的测试",
"push": {
"title": "标题",
"subTitle": "子标题"
},
"pList": [
{
"title": "p1标题",
"subTitle": "p1子标题"
},{
"title": "p2标题",
"subTitle": "p2子标题"
}],
"pSet": [
{
"title": "p3标题",
"subTitle": "p3子标题"
},{
"title": "p4标题",
"subTitle": "p4子标题"
}],
"pMap": {
"testKey1": "testValue1",
"testKey2": "testValue2"
}
}
* @author lixiaozhong
*/
@Component
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment