http://localhost:8090/test/one/reqCont=qwe
如何获取=号,等于号后面的值,java获取
连接是前端的请求,后台获取
@RestController
@RequestMapping("/test/one")
public class TestFileController {
@RequestMapping("/{reqCont}")
public String test(@PathVariable String reqCont){
System.out.println(reqCont);
return "发送成功"+reqCont;
}
}
正则或者字符串操作
https://blog.csdn.net/weixin_30498921/article/details/95459207