我是在写接口的时候,发生此错误的,发现原因是因为@PathVariable没有给参数,在此记录
错误的:
public CommonResult getPaymentById(@PathVariable() Long id);
正确的:
public CommonResult getPaymentById(@PathVariable(“id”) Long id);
我是在写接口的时候,发生此错误的,发现原因是因为@PathVariable没有给参数,在此记录
错误的:
public CommonResult getPaymentById(@PathVariable() Long id);
正确的:
public CommonResult getPaymentById(@PathVariable(“id”) Long id);