ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ package com.supergo.client; import com.supergo.http.HttpResult; import com.supergo.pojo.Item; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; //指定远程调用哪个微服务,eureka client注册的服务名 @FeignClient("supergo-manager") public interface ItemClient { //配置远程调用哪个接口(支持springMVC注解) @PostMapping("/item/query/{page}/{size}") HttpResult findPage(@RequestBody Item item, @PathVariable("page") int page, @PathVariable("size") int size); } ~~~