Skip to content

Commit 13dbc8e

Browse files
committed
Merge branch 'master' of https://github.com/hengboy/api-boot into 2.0.5.RC1
2 parents 8c6545d + a628640 commit 13dbc8e

File tree

2 files changed

+24
-0
lines changed
  • api-boot-samples

2 files changed

+24
-0
lines changed

api-boot-samples/api-boot-sample-http-converter/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,28 @@ spring:
3333

3434
```
3535

36+
### 内置ValueFilter注解
3637

38+
| 注解名称 | ValueFilter实现类 | 作用 |
39+
| ------------------------- | ----------------------- | ------------------------------------------------ |
40+
| `@ApiBootValueHide` | `ValueHideFilter` | 用于格式化隐藏标注的字符串字段的值 |
41+
| `@ApiBootDecimalAccuracy` | `DecimalAccuracyFilter` | 用于格式化BigDecimal类型字段的精度、小数点位数等 |
42+
43+
##### @ApiBootValueHide
44+
45+
可配置参数:
46+
47+
- `length`:隐藏的字节长度
48+
- `start`:开始隐藏的字节索引位置
49+
- `position`:位置类型,具体查看`ValueHidePositionEnum`枚举
50+
- `placeholder`:隐藏后被替换的字符,默认为:`*`
51+
52+
##### @ApiBootDecimalAccuracy
53+
54+
可配置参数:
55+
56+
- `scale`:小数点位数,默认为`2`
57+
- `roundingMode`:小数点精度模式,默认为`BigDecimal.ROUND_DOWN`,具体查看`BigDecimal`的rounding mode
3758

3859
### 自定义ValueFilter
3960

api-boot-samples/api-boot-sample-security-oauth-jwt/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
| `api.boot.security.users` | 配置用户列表,具体使用查看[内存方式介绍](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-security-oauth-jwt#%E5%86%85%E5%AD%98%E6%96%B9%E5%BC%8F%E9%BB%98%E8%AE%A4%E6%96%B9%E5%BC%8F) || memory |
2828
| `api.boot.security.ignoring-urls` | `Spring Security`所排除的路径,默认排除Swagger、Actuator相关路径前缀 | /v2/api-docs<br />/swagger-ui.html<br />/swagger-resources/configuration/security<br />/META-INF/resources/webjars/**<br />/swagger-resources<br />/swagger-resources/configuration/ui<br />/actuator/** | memory/jdbc |
2929
| `api.boot.security.enable-default-store-delegate` | 仅在Jdbc方式生效 | true | jdbc |
30+
| `api.boot.security.disable-http-basic` | 禁用basic http | true | memory/jdbc |
31+
| `api.boot.security.disable-csrf` | 禁用csrf | true | memory/jdbc |
3032

3133

3234

@@ -37,6 +39,7 @@
3739
| `api.boot.oauth.away` | Oauth存储Token、读取Client信息方式 | memory | all |
3840
| `api.boot.oauth.cleint-id` | Oauth2 Client ID | ApiBoot | memory |
3941
| `api.boot.oauth.client-secret` | Oauth2 Client Secret | ApiBootSecret | memory |
42+
| `api.boot.oauth.resource-id` | Oauth2接口资源编号 | api | memory |
4043
| `api.boot.oauth.grant-types` | 客户端授权方式 | Srtring[]{"password"} | memory |
4144
| `api.boot.oauth.scopes` | 客户端作用域 | String[]{"api"} | memory |
4245
| `api.boot.oauth.jwt.enable` | 是否启用JWT格式化AccessToken | false | memory/jdbc |

0 commit comments

Comments
 (0)