@RestController()
@RequestMapping("/v1/e")
public class EC {
@PostMapping(path = "{document}", consumes = "application/json", produces = "application/json")
public ResponseEntity<InputStreamResource> createDocument(@PathVariable Dtype document,@RequestBody String data){
//code
}
我正在尝试在下面的 Postman 上发出帖子请求,这是我用来发帖的URL
请参阅
但是,我在postman上遇到以下错误
{
"timestamp": "2020-08-05T02:22:03.008+0000",
"status": 404,
"error": "Not Found",
"message": "Not Found",
"path": "/v1/e"
}
1条答案
按热度按时间2admgd591#
你也可以像下面这样使用:
你的
POST REQUEST
是http://localhost:8080/v1/e?document=E_PC