代码拉取完成,页面将自动刷新
Dear dev team.
How can i get zoneid from this uri: "http://localhost:8080/post/546546"
Thanks!
smart-http currently does not provide path-based parameter parsing capabilities, you can implement it by extend the HttpServerHandler
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
This feature should be a feature of the MVC framework. "smarthttp-solon-plugin" is recommended for adapting smart-HTTP to Solon
@Controller
public class DemoController{
@Mapping("/post/{zoneid}")
public void post(String zoneid){
}
}
Sample article:https://solon.noear.org/article/90
Solon project address:https://gitee.com/noear/solon
登录 后才可以发表评论