Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
23235123
Commit
23235123
authored
Feb 11, 2016
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarification regardinff shared interfaces in server and client
parent
213df388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+5
-2
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
23235123
...
@@ -905,8 +905,6 @@ WARNING: There is a limitation with the implementation of fallbacks in Feign and
...
@@ -905,8 +905,6 @@ WARNING: There is a limitation with the implementation of fallbacks in Feign and
Feign supports boilerplate apis via single-inheritance interfaces.
Feign supports boilerplate apis via single-inheritance interfaces.
This allows grouping common operations into convenient base interfaces.
This allows grouping common operations into convenient base interfaces.
Together with Spring MVC you can share the same contract for your
REST endpoint and Feign client.
.UserService.java
.UserService.java
[source,java,indent=0]
[source,java,indent=0]
...
@@ -938,6 +936,11 @@ public interface UserClient extends UserService {
...
@@ -938,6 +936,11 @@ public interface UserClient extends UserService {
}
}
----
----
NOTE: It is gernarally not advisable to share an interface between a
server and a client. It introduces tight coupling, and also actually
doesn'
t
work
with
Spring
MVC
in
its
current
form
(
method
parameter
mapping
is
not
inherited
).
===
Feign
request
/
response
compression
===
Feign
request
/
response
compression
You
may
consider
enabling
the
request
or
response
GZIP
compression
for
your
You
may
consider
enabling
the
request
or
response
GZIP
compression
for
your
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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