NLPServiceHystrix.java 509 B

1234567891011121314151617181920212223
  1. package com.diagbot.client.hystrix;
  2. import com.diagbot.client.NLPServiceClient;
  3. import com.diagbot.vo.NlpVO;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * @Description:调用NLP对接层服务
  8. * @Author:zhoutg
  9. * @time: 2019/4/2 15:36
  10. */
  11. @Component
  12. @Slf4j
  13. public class NLPServiceHystrix implements NLPServiceClient {
  14. @Override
  15. public String getNlp(NlpVO nlpVO) {
  16. log.error("【hystrix】调用{}异常", "getNlp");
  17. return null;
  18. }
  19. }