aliyun-sms-spring-boot-starter

spring boot starter for aliyun sms

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.zhangquanli
ArtifactId

ArtifactId

aliyun-sms-spring-boot-starter
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

aliyun-sms-spring-boot-starter
spring boot starter for aliyun sms
Project URL

Project URL

https://github.com/zhangquanli/aliyun-sms-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/zhangquanli/aliyun-sms-spring-boot-starter

Download aliyun-sms-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zhangquanli/aliyun-sms-spring-boot-starter/ -->
<dependency>
    <groupId>com.github.zhangquanli</groupId>
    <artifactId>aliyun-sms-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zhangquanli/aliyun-sms-spring-boot-starter/
implementation 'com.github.zhangquanli:aliyun-sms-spring-boot-starter:1.1.0'
// https://jarcasting.com/artifacts/com.github.zhangquanli/aliyun-sms-spring-boot-starter/
implementation ("com.github.zhangquanli:aliyun-sms-spring-boot-starter:1.1.0")
'com.github.zhangquanli:aliyun-sms-spring-boot-starter:jar:1.1.0'
<dependency org="com.github.zhangquanli" name="aliyun-sms-spring-boot-starter" rev="1.1.0">
  <artifact name="aliyun-sms-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zhangquanli', module='aliyun-sms-spring-boot-starter', version='1.1.0')
)
libraryDependencies += "com.github.zhangquanli" % "aliyun-sms-spring-boot-starter" % "1.1.0"
[com.github.zhangquanli/aliyun-sms-spring-boot-starter "1.1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter Optional jar 2.2.11.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.2.11.RELEASE
com.fasterxml.jackson.core : jackson-databind jar 2.12.0
com.squareup.okhttp3 : okhttp jar 3.14.9

Project Modules

There are no modules declared in this project.

aliyun-sms-spring-boot-starter

基于 Spring Boot 框架,快速集成【阿里云】【短信】

快速集成

  1. pom.xml 文件中,引入依赖
    <dependency>
        <groupId>com.github.zhangquanli</groupId>
        <artifactId>aliyun-sms-spring-boot-starter</artifactId>
        <version>1.1.0</version>
    </dependency>
  2. application.propertiesapplication.yml 文件中,进行配置
    aliyun.sms.access-key-id=accessKeyId
    aliyun.sms.access-key-secret=accessKeySecret
    aliyun:
      sms:
        access-key-id: accessKeyId
        access-key-secret: accessKeySecret

快速开发

  1. 在 Spring Boot 项目中,可以直接注入 AliyunSms 接口
    @Resource
    private AliyunSms aliyunSms;
  2. 使用 AliyunSms 接口封装好的方法

更新日志

1.1.0

  1. 优化请求参数结构,增加请求参数校验功能
  2. 升级此版本,可能会导致原有部分代码报错,请按照报错提示修改

1.0.2

  1. 重构代码实现,原有接口保持不变

1.0.1

  1. 修复【修改短信模板请求参数不正确】的bug

1.0.0

  1. 封装阿里云短信服务相关接口

Versions

Version
1.1.0
1.0.2
1.0.1
1.0.0