@PostMapping("/api/1")
public Test get(Long id) {
return testService.getCri(id);
}
postman不傳引數直接調介面,報錯Value for id cannot be null
@PostMapping("/api/2")
public Test update(Long id,String name,String age,String address,String tent) {
return testService.update(id,name,age,address,tent);
}
postman不傳引數直接調介面,不報錯
這是什么原理呀?
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/284499.html
標籤:Java EE
上一篇:tomcat假死,jstack日志分析,新手求助~~
下一篇:請教一個正則運算式該如何寫?