我使用/rest/api/2/ attachment /{id}来获取附件的json响应。它有"content“字段,即附件url。我使用这个url并构造HttpGet并执行以获得响应,该响应总是给我请求登录的html内容。我在httpGet报头中发送基本授权。显然,这适用于下载.png文件,但不适用于任何其他文件类型。我正在使用java spring rest</e
我正在使用Rest,它从Server数据库中公开了6212514行。REST的响应是JSON,它表示数据库行。实际上,我在Spring应用程序(Version2.5.1)(独立的Spring而不是REST )(Java11/ Spring / Webclient )中使用这个代码来使用客户端REStAPI并通过分页获取所有数据:使用REST的Spring :
public
这是我的控制器:@RequestMapping("api") @RequestMapping(value="check",method=RequestMethod.GET,produces="application/json") public UserAcc returnuserassignedUserId")
private List