http://localhost:8090/test/one/reqCont=qwe
如何获取=号,等于号后面的值,java获取
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;
}
}