RequestBody DTO dto) {}
但是客户端的"put“方法会抛出异常,即使服务器成功命中,我也不期望返回值Exception in thread "main" org.springframework.web.client.HttpClientErrorException: 404 Not Found
id=1时,它会返回正确的内容,但当我转到http://localhost/products/1时,它会返回404notfound错误。我尝试了这个问题:htaccess rewrite returns 404 not found和htaccess problem 404 not found,但都不起作用