java - Not sure if this is appropriate to do -- calling a Spring endpoint from another endpoint -
is there way me , appropriate? need data comes endpoint in different controller. create http request on right in java code?
please advise if appropriate question here...
you might want consider separating retrieval of data , presentation of data current endpoint in 2 different classes. after you've done can have 2 spring controllers share same source of data. 1 of them current spring controller, other 1 new one.
performing http request 1 spring controller 1 in same application introduce lot of overhead , complexity. try avoid that.
Comments
Post a Comment