提交 7c48fcd0 编写于 作者: 如梦技术's avatar 如梦技术 🐛

整理更新记录。

上级 c4f70879
# 变更记录
## 发行版本
### v2.1.0-GA - 2020-12-13
- :sparkles: mica-swagger 添加 oauth2 认证配置。
- :sparkles: mica-http 添加流上传,完善文档。
- :sparkles: StringUtil 优化 format 方法参数泛型。
- :sparkles: JsonUtil 添加参数化类型 getParametricType 方法。
- :arrow_up: 升级 knife4j 到 3.0.2。
- :arrow_up: 升级 druid 到 1.2.3。
### v2.0.9-GA - 2020-11-15
- :sparkles: mica-xss 可自定义 XssCleaner 接口。
- :sparkles: mica-xss 日志统一调整为 debug。
......
......@@ -37,22 +37,22 @@ compile("net.dreamlu:mica-swagger:${version}")
| 配置项 | 默认值 | 说明 |
| ----- | ------ | ------ |
| mica.swagger.oauth2.enabled | false | 开启Oauth2,默认:false |
| mica.swagger.oauth2.name | oauth2 | oath2 名称,默认:oauth2 |
| mica.swagger.oauth2.name | oauth2 | 鉴权策略ID,对应 SecurityReferences ID,默认:oauth2 |
| mica.swagger.oauth2.authorize-url | | authorize url |
| mica.swagger.oauth2.client-id-name | | clientId name |
| mica.swagger.oauth2.client-secret-name | | clientSecret name |
| mica.swagger.oauth2.token-name | access_token | token name,默认:access_token |
| mica.swagger.oauth2.token-url | | token url |
| mica.swagger.oauth2.scopes | | oauth2 scope 列表 |
| mica.swagger.oauth2.grant-type | | 授权类型 |
| mica.swagger.oauth2.grant-type | authorization_code | 授权类型 authorization_code、client_credentials、implicit、password |
| mica.swagger.oauth2.path-patterns | | 需要开启鉴权URL的正则,默认:/** |
### api key 认证配置
| 配置项 | 默认值 | 说明 |
| ----- | ------ | ------ |
| mica.swagger.authorization.enabled | false | 开启Authorization,默认:false |
| mica.swagger.authorization.key-name | TOKEN | 鉴权传递的Header参数,默认:TOKEN |
| mica.swagger.authorization.name | Authorization | 鉴权策略ID,对应 SecurityReferences ID,默认:Authorization |
| mica.swagger.authorization.key-name | TOKEN | 鉴权传递的Header参数,默认:TOKEN |
| mica.swagger.authorization.path-patterns | | 需要开启鉴权URL的正则,默认:/** |
## 使用
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册