Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
ecd30570
Commit
ecd30570
authored
Nov 08, 2019
by
Greg Messner
Browse files
Disabled auto-discovery and services lookup (#448, #468).
parent
9df03376
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApiClient.java
View file @
ecd30570
...
@@ -234,6 +234,11 @@ public class GitLabApiClient {
...
@@ -234,6 +234,11 @@ public class GitLabApiClient {
}
}
}
}
// Disable auto-discovery of feature and services lookup, this will force Jersey
// to use the features and services explicitly configured by gitlab4j
clientConfig
.
property
(
ClientProperties
.
FEATURE_AUTO_DISCOVERY_DISABLE
,
true
);
clientConfig
.
property
(
ClientProperties
.
METAINF_SERVICES_LOOKUP_DISABLE
,
true
);
clientConfig
.
register
(
JacksonJson
.
class
);
clientConfig
.
register
(
JacksonJson
.
class
);
clientConfig
.
register
(
MultiPartFeature
.
class
);
clientConfig
.
register
(
MultiPartFeature
.
class
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment