# 阿里云短信服务学习 **Repository Path**: Supeichen/sendSmsStudy ## Basic Information - **Project Name**: 阿里云短信服务学习 - **Description**: 学习使用阿里云短信服务 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-05-15 - **Last Updated**: 2021-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 阿里云短信服务学习 #### 介绍 学习使用阿里云短信服务 ### 开始 - 创建 SpringBoot 项目 - 导入 web 、阿里云sdk、fastjson 、redis 依赖 - 修改配置文件中 redis 的配置 ~~~ # 修改SendSmsImpl.java文件, 为阿里云用户组中用户对应的 # 或者将 Key 以及 Secret 放到配置文件中 DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou","",""); # send()函数,phoneNum 为发送短信的对象,templateCode 为阿里云短信模板Code,code 为验证码。 send(String phoneNum, String templateCode, Map code)