睿虎的博客

  • 主页
  • 归档
  • 分类
  • 标签
  • 关于
  • 我的Blogger
  • 睿火正则工具
  • KeyAction
  • 火狐音量增益工具
  • 油猴脚本:记住Google搜索语言
  • 睿火打字练习
  • 睿火文件对比工具
  • 随机字符串生成器
  • Search
  • Table of Contents
  • Overview

睿虎

90 posts
50 categories
46 tags

SpringBoot处理动态URL

Posted on 2023-07-08 In 编程 , Java , SpringBoot Waline:

可以像下面这样写:

1
2
3
4
5
6
@ResponseBody
@RequestMapping("/info/{id}/{username}")
public String info(@PathVariable("id") Integer id, @PathVariable("username") String username){

return id.toString()+" : "+username;
}
# 编程 # Java # SpringBoot
Termux用Termux-services设置自启动项
SpringBoot生成验证码
  • Disqus
  • Waline
© 2025 睿虎
Powered by Hexo & NexT.Pisces
0%