1

我应该如何访问公共问题,因为当我通过 Java 访问它时出现“401 Unauthorized”异常。

很少有公共问题是:

代码:

JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
URI jiraServerUri = new URI("https://issues.sonatype.org/rest/api/2/search");
JiraRestClient client = factory.createWithBasicHttpAuthentication(jiraServerUri, username, password);
4

0 回答 0