0

How to defined OpenFeign Response Object when using SpringCloud ?

There are two regular way to do that :

1、With strong type of java;

2、Return String object Or JSON ( exp: JSONObject);

JacobChan
  • 175
  • 1
  • 3
  • 15

1 Answers1

1

It's generally a good idea to use "static typing" if you can. You can see this SO answer that can help you to understand why.

Jonatan Ivanov
  • 4,895
  • 2
  • 15
  • 30