当前位置: 首页 > news >正文

大学生做网站兼职seo优化在线诊断

大学生做网站兼职,seo优化在线诊断,深圳品牌做网站,要做一个网站需要准备什么目录 #x1f34b;发送验证码#x1f9e3;短信服务#xff08;推荐#xff09;#x1f433;注册购买#x1f3d3;代码测试 #x1f590;Java组件封装#x1f95d;发送实例#x1f95d;pom依赖#x1f308;Spring.factories(略) #x1f34e;麻烦给博主点个关注收藏点… 目录 发送验证码短信服务推荐注册购买代码测试 Java组件封装发送实例pom依赖Spring.factories(略) 麻烦给博主点个关注收藏点赞 发送验证码 短信发送是电信运营商提供的服务需要访问对应的接口不同运营商提供的接口地址肯定不一样如果直接访问这些接口就需要判断收信息的手机号属于哪个运营商关键在于这些接口不对个人开放还要考虑调用短信服务的费用问题 因此目前调用短信业务都是使用第三方企业的短信服务他们与运营商合作封装了短信接口调用方法而且费用相对便宜 第三方的短信服务有很多其中阿里云也提供了短信服务 短信服务推荐 注册购买 第一步阿里云首页搜索短信服务 地址添加链接描述 第二步选择购买的短信服务 第三步点击购买有5条免费使用测试也会消耗使用次数用完了在付费购买即可 第四步找到自己购买的云服务 可以看到已购买的服务剩余数量 代码测试 第一步参考API在【API接口】中已经给出了Java代码怎么调用该服务的接口 第二步参考API编写发送短信工具类 import com.aliyun.tea.TeaModel;/**** Title:* ClassName: com.hssmart.common.utils.AliyunSms.java* Description:** Copyright suihao- Powered By 研发中心* author: suihao* date: 2022-11-01 15:51* version V1.0*/ public class AliyunSms {/*** 使用AKSK初始化账号Client* param accessKeyId * param accessKeySecret* return Client* throws Exception*/public static com.aliyun.dysmsapi20170525.Client createClient(String accessKeyId, String accessKeySecret) throws Exception {com.aliyun.teaopenapi.models.Config config new com.aliyun.teaopenapi.models.Config()// 您的 AccessKey ID.setAccessKeyId(accessKeyId)// 您的 AccessKey Secret.setAccessKeySecret(accessKeySecret);// 访问的域名config.endpoint dysmsapi.aliyuncs.com;return new com.aliyun.dysmsapi20170525.Client(config);}} accessKeyId 以及accessKeySecret查找的方式“ 第一步点击头像打开accessKey管理 第二部进行查看所需要的accessKeyId 以及accessKeySecret Java组件封装 发送实例 package com.suihao.autoconfig.properties;public static void main(String[] args) {com.aliyun.dysmsapi20170525.Client client AliyunSms.createClient(accessKeyId, accessKeySecret);com.aliyun.dysmsapi20170525.models.SendSmsRequest sendSmsRequest new com.aliyun.dysmsapi20170525.models.SendSmsRequest().setSignName(签名名称).setTemplateCode(模板号码).setPhoneNumbers(测试手机号).setTemplateParam({\code\:\6666\});com.aliyun.teautil.models.RuntimeOptions runtime new com.aliyun.teautil.models.RuntimeOptions();com.aliyun.dysmsapi20170525.models.SendSmsResponse resp client.sendSmsWithOptions(sendSmsRequest, runtime);com.aliyun.teaconsole.Client.log(com.aliyun.teautil.Common.toJSONString(TeaModel.buildMap(resp)));}1.SignName代表的签名名称 2.TemplateCode代表的模板code pom依赖 !--阿里云--developersdeveloperidaliyundeveloper/idnameAliyun SDK/nameemailaliyunsdkaliyun.com/email/developer/developersdistributionManagementsnapshotRepositoryidsonatype-nexus-snapshots/idurlhttps://s01.oss.sonatype.org/content/repositories/snapshots/url/snapshotRepositoryrepositoryidsonatype-nexus-staging/idurlhttps://s01.oss.sonatype.org/service/local/staging/deploy/maven2//url/repository/distributionManagementscmconnection/connectiondeveloperConnection/developerConnectionurl/url/scmdependencies!--阿里云--dependencygroupIdcom.aliyun/groupIdartifactIddysmsapi20170525/artifactIdversion2.0.22/version/dependencydependencygroupIdcom.aliyun/groupIdartifactIdtea-openapi/artifactIdversion0.2.6/version/dependencydependencygroupIdcom.aliyun/groupIdartifactIdtea-console/artifactIdversion0.0.1/version/dependencydependencygroupIdcom.aliyun/groupIdartifactIdtea-util/artifactIdversion0.2.14/version/dependencydependencygroupIdcom.aliyun/groupIdartifactIdtea/artifactIdversion1.1.14/version/dependency!----/dependenciesbuildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactId/pluginplugingroupIdorg.sonatype.plugins/groupIdartifactIdnexus-staging-maven-plugin/artifactIdversion1.6.3/versionextensionstrue/extensionsconfigurationserverIdsonatype-nexus-staging/serverIdnexusUrlhttps://s01.oss.sonatype.org//nexusUrlautoReleaseAfterClosetrue/autoReleaseAfterClose/configuration/plugin/plugins/buildSpring.factories(略) 麻烦给博主点个关注收藏点赞
http://www.w-s-a.com/news/480912/

相关文章:

  • 开个网站做代理赚钱吗沽源网站建设
  • 做卖车网站需要什么手续wordpress 主题 demo
  • 上海外贸网站开发公司建设内容
  • 网站制作品牌公司网站的字体颜色
  • 外贸wordpress模板常德seo快速排名
  • 网站后台认证码专门做网页的网站
  • 宁波企业品牌网站建设物流公司招聘
  • 北京机建网站做网站用angular
  • 攀枝花市网站建设outlook企业邮箱注册申请
  • 企业网站建设报价单免费劳务网站建设
  • 天津平台网站建设方案国际新闻最新消息今天乌克兰与俄罗斯
  • 食用油 网站 模板网页游戏网站在线玩
  • 做网站用的书新能源东莞网站建设技术支持
  • 漯河网站超市建设软件开发的五个阶段
  • 制作深圳网站建设阿里OSS做网站图库费用
  • 网页设计与网站建设 入门必练宜都网站seo
  • 网站设计沟通阆中网站网站建设
  • 缩短网址做钓鱼网站如何确保网站安全
  • 网店网站开发怎样用ps做企业网站
  • 南京门户网站建设做网站一般注册哪几类商标
  • 企业咨询管理服务wordpress seo tdk
  • 做网站前期创建文件夹flash 开发的网站
  • 天津网站制作培训搭建网站的工具
  • 江西网站建设价格低网上卖产品怎么推广
  • 做aelogo动效有什么好的网站建立网站站点的步骤
  • 无锡网站推广公司排名网站赚钱平台
  • 网站物理结构利用公共dns做网站解析
  • 苍南做网站微信建设网站哪家好
  • 华中农业大学基因编辑在线设计网站网站蓝色配色
  • 洛阳建设工程信息网站怎么在服务器建立网站