采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
接口调用提示:Error: connect ECONNREFUSED 127.0.0.1:8081 接口地址:http://127.0.0.1:8081/commodity/list 请求方式:POST 请求参数: { “ids”: [ “1000001”, “1000002” ] }
注释掉application.yml里面的amqps配置:
#aliyun:# accessKey: xxx# accessSecret: xxx# iot:# endpoint: iot.cn-shanghai.aliyuncs.com# consumerGroup: xxx# amqp:# host: 1984706750605697.iot-amqp.cn-shanghai.aliyuncs.com
然后将AmqpClient类整个注释掉,再注释掉IoTDeviceServiceImpl类里面的:
// @Value("${aliyun.accessKey}")// private String accessKey;//// @Value("${aliyun.accessSecret}")// private String accessSecret;//// @Value("${aliyun.iot.endpoint}")// private String endpoint;
和
// @PostConstruct// public void init() throws Exception {// Config config = new Config()// .setAccessKeyId(accessKey)// .setAccessKeySecret(accessSecret);// config.endpoint = endpoint;// client = new com.aliyun.iot20180120.Client(config);// }
这样就好了。
登录后可查看更多问答,登录/注册
结合智慧零售项目实践,深度解剖DDD思想与应用方法
919 5
897 5
975 5
1.4k 5
826 4
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号