# 基于阿里云短信开发的短信包 **Repository Path**: JKcoding/sms ## Basic Information - **Project Name**: 基于阿里云短信开发的短信包 - **Description**: 只需要简单配置即可使用阿里云短信服务 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2020-03-17 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于阿里云短信开发的短信包 #### 介绍 只需要简单配置即可使用阿里云短信服务 ``` public class Test009 { public static void main(String[] args) throws ClientException { MsgEntity msgEntity = new MsgEntity(); msgEntity.setAccessKeyId("XXX") .setAccessKeySecret("XXX") .setSignName("XX服务") .setPhoneNumbers("电话号码") .setCheckCode("494931") .setCheckCodeType("checkcode") .setTemplateCode("SMS_123456"); SMSUtils.sendShortMessage(msgEntity); } } ```