| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.demo.feign.FeignTestService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * feign测试controller |
| | | * |
| | | * @author Lion Li |
| | | * @deprecated 由于使用人数较少 决定与 3.4.0 版本移除 |
| | | */ |
| | | @Api(value = "feign测试", tags = {"feign测试"}) |
| | | @RequiredArgsConstructor(onConstructor_ = @Autowired) |
| | | @RestController |
| | | @RequestMapping("/feign/test") |
| | |
| | | |
| | | private final FeignTestService feignTestService; |
| | | |
| | | /** |
| | | * 搜索数据 |
| | | */ |
| | | @ApiOperation("测试使用feign请求数据") |
| | | @GetMapping("/search/{wd}") |
| | | public AjaxResult search(@PathVariable String wd) { |
| | | String search = feignTestService.search(wd); |