快速开始
1 引入基础jar包
1 | <dependency> |
2 引入厂商实现包并进行厂商参数配置
以阿里云为例
2.1 引入jar
1 | <dependency> |
3.2 参数配置
在application.yml中添加配置
1 | sms: |
3 业务调用
3.1 短信通知
1 | Map<String, String> params = new HashMap<>(); |
3.2 验证码
1 | String phone = "电话号码"; |
1 | <dependency> |
以阿里云为例
1 | <dependency> |
在application.yml中添加配置
1 | sms: |
1 | Map<String, String> params = new HashMap<>(); |
1 | String phone = "电话号码"; |