第一种方法,以发送短信功能为例: 1.application.properties文件: sms.host=http://dingxin.market.alicloudapi.com sms.path=/dx/sendSms sms.method=POST sms.appcode=xxxxxxx 2.需要注入的类,在类的上面加上@Component,在类属...
一、墨迹接口调用 private String host =ConfigurationManager.AppSettings["WeatherHost"];//接口直接写到webconfig中 private const String pathWeather = "/whapi/json/alicityweather/br...