使用阿里大于平台发送短信验证码java代码实现
2024-08-30 00:29:34
待续。。网站app后台还未完成,不能添加签名,短信不能正常发送。
Tip: https://help.aliyun.com/document_detail/55284.html?spm=5176.sms-account.0.0.63931cbeYBbL8t
1、创建阿里云账号
点击阿里大于的官网:https://dayu.aliyun.com/
注册账户后,进行实名认证(开通短信服务需要)。
找到管理控制台,选择“短信服务”,然后进行以下操作
2、 获取阿里云访问密钥
https://usercenter.console.aliyun.com/#/manage/ak
3、在控制台完成模板与签名的申请,获得调用接口必备的参数
1)添加模板:
国内消息-->文本短信-->模版管理
https://help.aliyun.com/document_detail/55330.html?spm=5176.sms-account.103.7.1bf31cbegoZOOl
提交后,等待审核通过。
2)申请短信签名,这步可以不设置(我自己的未通过。。)
国内消息-->文本短信-->签名管理
https://help.aliyun.com/document_detail/55327.html?spm=a2c4g.11186623.6.555.4ab87b69QfaM0L
4、开发阶段:
添加依赖:
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>4.0.6</version></dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>1.1.0</version>
</dependency>
最新文章
- nginx.conf的events,http段一般固定配置
- 使用的组件:Jcrop
- 重新签名IPA ( iPhone )
- Emblog 备忘
- 三分钟部署Laxcus大数据管理系统
- [LeetCode][Python]Container With Most Water
- html mysql special character
- C++移动构造函数以及move语句简单介绍
- 洛谷P1226 【模板】快速幂||取余运算
- MySQL 5.7--复制延迟监控
- 第16章 STM32中断应用概览
- 缓慢变化维 (Slowly Changing Dimension) 常见的三种类型及原型设计(转)
- MongoDB(课时10 数组)
- Accelerated C++学习笔记7—&;lt;使用库算法&;gt;
- js冒泡法和数组转换成字符串
- c++中子类转父类,父类转子类
- MySQL之函数
- 【题解】HNOI2017大佬
- OpenStack之虚机热迁移
- zookeeper 下载安装
热门文章
- PyCharm 代码行出现多余的数字
- Python3中bytes和HexStr之间的转换
- 微服务项目开发学成在线_day02 CMS前端开发
- ZJNU 1699 - Bits
- PowerShell-Selenium技术实时调试和操作Chrome浏览器
- Python 学习笔记:Python 中单引号(&#39;)、双引号(";)、三引号(&#39;&#39;&#39;,";";";)的使用以及不转义字符串
- TPO1-2 The Origin of Theater
- [GX/GZOI2019]与或和(单调栈+按位运算)
- html5 一些好用的原生事件
- Qt LNK1112: 模块计算机类型“x64”与目标计算机类型“X86”冲突问题