Skip to content

Commit 7ac2e2a

Browse files
committed
添加ApiBoot Mail使用示例
1 parent 1fe4847 commit 7ac2e2a

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Demo列表:
108108
- [ApiBoot Mybatis Enhance](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-enhance)
109109
- [ApiBoot Mybatis Enhance Codegen](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-enhance-codegen)
110110
- [ApiBoot Mybatis Pageable](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-pageable)
111+
- [ApiBoot Mail](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mail)
111112

112113
## 更新日志
113114

api-boot-samples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Demo列表:
1515
- [ApiBoot Mybatis Enhance](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-enhance)
1616
- [ApiBoot Mybatis Enhance Codegen](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-enhance-codegen)
1717
- [ApiBoot Mybatis Pageable](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-pageable)
18+
- [ApiBoot Mail](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mail)

api-boot-samples/api-boot-sample-security-oauth-jwt/src/main/java/org/minbox/framework/api/boot/sample/DisableDefaultUserTableStoreDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public class DisableDefaultUserTableStoreDelegate implements ApiBootStoreDelegat
4646
* 根据用户名查询用户信息
4747
*
4848
* @param username 用户名
49-
* @return
50-
* @throws UsernameNotFoundException
49+
* @return UserDetails
50+
* @throws UsernameNotFoundException 用户不存在
5151
*/
5252
@Override
5353
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {

api-boot-samples/api-boot-sample-security-oauth-jwt/src/main/java/org/minbox/framework/api/boot/sample/PhoneCodeOauthTokenGranter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public String grantType() {
6666

6767
/**
6868
* 该方法参数集合是获取Token时携带的参数
69-
* 获取Token路径:/oauth/token?grant_type=phone_code&phone=171xxxxx&code=196523
7069
* phone=171xxxxx
7170
* code=196523
7271
*
@@ -76,6 +75,7 @@ public String grantType() {
7675
*/
7776
@Override
7877
public UserDetails loadByParameter(Map<String, String> parameters) throws ApiBootTokenException {
78+
// 获取Token路径:/oauth/token?grant_type=phone_code&phone=171xxxxx&code=196523
7979
String phone = parameters.get(PARAM_PHONE);
8080
String code = parameters.get(PARAM_CODE);
8181

0 commit comments

Comments
 (0)