首页>代码>springboot集成smart-doc插件,一键生成代码接口API文档>/springboot-smartdoc/src/main/java/com/simon/springbootsmartdoc/controller/HelloController.java
package com.simon.springbootsmartdoc.controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author simon */ @RestController @RequestMapping("/hello") public class HelloController { @RequestMapping("/nono") public String nono(@PathVariable(name = "nono") String nono) { return "Hello " + nono + "!"; } @RequestMapping("/index") public String index(@PathVariable(name = "nono") String nono) { return "Hello World!"; } }

cheung524071 LV8
2023年8月23日
最代码官方 LV168
2023年8月13日

docnnxxy688
3月22日
暂无贡献等级
srmess LV4
2024年12月30日
lxy135 LV1
2023年10月10日
夜起星河 LV8
2023年9月28日
szf123 LV12
2023年9月23日
茶茶茶百道qq
2023年9月20日
暂无贡献等级
zhy1989wz LV7
2023年9月11日
Sean_admin LV7
2023年9月5日
微信网友_6461019441418240 LV2
2023年9月4日
zhuiqiu LV4
2023年9月2日