0
我想通過傳遞參數像一個路徑變量定製我的彈簧數據休息搜索方法路徑彈簧數據休息搜索方法路徑遵循如何配置@PathVariable
http://localhost:8080/orders/search/customers/{customerId}
findByCustomer(@PathVariable("customerId") Integer customer);
搜索資源listh鏈接如下
http://localhost:8080/orders/search/customers/%7BcustomerId%7D
如何使路徑參數暴露搜索網址?
你是通過customerId的價值? – Nimesh
customerId是一個整數取值爲1 – SST
對不起,我沒有得到你想要做的。你能提供更多的信息嗎? – Patrick