ClouGence / hasor

Hasor是一套基于 Java 语言的开发框架,区别于其它框架的是 Hasor 有着自己一套完整的体系,同时还可以和先有技术体系做到完美融合。它包含:IoC/Aop容器框架、Web框架、Jdbc框架、RSF分布式RPC框架、DataQL引擎,等几块。
http://www.hasor.net
Apache License 2.0
983 stars 273 forks source link

GET请求无法发送json消息体 #88

Closed cbz20000 closed 3 years ago

cbz20000 commented 3 years ago

GET的参数无法设置为非JSON格式,querystring里面的参数在dataql里面无法使用,有什么办法能取到querystring里面的参数吗?前端或者某些http框架get方法无法发送请求正文的。

1

2

后台日志: 2021-02-25 18:27:25.359 INFO 14112 --- [nio-9001-exec-3] n.hasor.dataway.service.ApiCallService : requestSuccess - {"apiMethod":"GET","apiPath":"/api/test","code":0,"compilerTime":4,"executionTime":1,"lifeCycleTime":5,"paramRootKeys":["user_id","user_idArrays"],"prepareHint":"valueIsNull"}

cbz20000 commented 3 years ago

GET的参数无法设置为非JSON格式,querystring里面的参数在dataql里面无法使用,有什么办法能取到querystring里面的参数吗?前端或者某些http框架get方法无法发送请求正文的。

1

2

后台日志: 2021-02-25 18:27:25.359 INFO 14112 --- [nio-9001-exec-3] n.hasor.dataway.service.ApiCallService : requestSuccess - {"apiMethod":"GET","apiPath":"/api/test","code":0,"compilerTime":4,"executionTime":1,"lifeCycleTime":5,"paramRootKeys":["user_id","user_idArrays"],"prepareHint":"valueIsNull"}

querystring里面参数写错了,写的user_id,写成id后dataql里面能识别的