3d6b9c503cf9e5c002e652225b982437c6b0bdc9.svn-base 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //package org.jeecg.modules.demo.cloud.controller;
  2. //
  3. //import io.swagger.annotations.Api;
  4. //import io.swagger.annotations.ApiOperation;
  5. //import lombok.extern.slf4j.Slf4j;
  6. //import org.jeecg.common.api.vo.Result;
  7. //import org.jeecg.common.system.api.ISysBaseAPI;
  8. //import org.jeecg.common.system.vo.DictModel;
  9. //import org.springframework.web.bind.annotation.GetMapping;
  10. //import org.springframework.web.bind.annotation.RequestMapping;
  11. //import org.springframework.web.bind.annotation.RestController;
  12. //
  13. //import javax.annotation.Resource;
  14. //import java.util.List;
  15. //
  16. ///**
  17. // *
  18. // */
  19. //@Slf4j
  20. //@Api(tags = "Cloud示例")
  21. //@RestController
  22. //@RequestMapping("/test")
  23. //public class JcloudDemoController {
  24. //
  25. //
  26. // @Resource
  27. // private ISysBaseAPI sysBaseAPI;
  28. //
  29. // /**
  30. // * 测试
  31. // *
  32. // * @return
  33. // */
  34. // @GetMapping("/remote")
  35. // @ApiOperation(value = "测试feign", notes = "测试feign")
  36. // public Result remoteDict() {
  37. //// try{
  38. //// //睡5秒,网关Hystrix3秒超时,会触发熔断降级操作
  39. //// Thread.sleep(5000);
  40. //// }catch (Exception e){
  41. //// e.printStackTrace();
  42. //// }
  43. // List<DictModel> list = sysBaseAPI.queryAllDict();
  44. // return Result.OK(list);
  45. // }
  46. //
  47. //
  48. //}