使用阿里云发送验证码短信完整代码
每次创建成功Accesskey之后,AccessKey Secret只会 显示一次,所以要保存一下,下次就看不见了,但是如果没有保存,删了重新创一个就完事了
package com.example.demo.com;
import com.aliyun.oss.ClientException;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsRequest;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
public class SMStest {