-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
402 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## executors | ||
|
||
1. KeyAffinityExecutor | ||
2. FixedThreadPoolExecutor | ||
3. RadicalThreadPoolExecutor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ain/java/common/core/util/ee/WebUtil.java → ...in/java/common/core/util/web/WebUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## feature | ||
|
||
1. anno | ||
- @LogAnnoV2 | ||
2. request-id | ||
- trace-id | ||
3. sls | ||
- enable: false | ||
4. desensitize | ||
- 真实情况下, 需要脱敏的数据不是很多: 可以直接 log 手动写(**不推荐**) | ||
- XxxConverter: 不推荐(可以注解方式) | ||
- [配置脱敏](https://github.com/liuchengyin01/LogbackDesensitization): **推荐** |
5 changes: 3 additions & 2 deletions
5
.../main/java/common/annotation/LogAnno.java → ...ain/java/common/logging/anno/LogAnno.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
.../hubby/openapi/annotation/OpenApiLog.java → ...n/java/common/logging/anno/LogAnnoV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package top.hubby.openapi.annotation; | ||
package common.logging.anno; | ||
|
||
import top.hubby.openapi.aspect.OpenApiSignatureAspect; | ||
import top.hubby.openapi.filter.OpenApiHttpServletFilter; | ||
import common.logging.anno.aspect.LogAnnoV2Aspect; | ||
import common.logging.anno.filter.LogHttpServletFilter; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* please notice if use this api, the OpenApiHttpServletFilter should be injected for read request | ||
* body. | ||
* | ||
* @see OpenApiHttpServletFilter | ||
* @see OpenApiSignatureAspect | ||
* @see LogHttpServletFilter | ||
* @see LogAnnoV2Aspect | ||
* @author zack <br> | ||
* @create 2022-04-07 17:40 <br> | ||
* @project mc-platform <br> | ||
*/ | ||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface OpenApiLog {} | ||
public @interface LogAnnoV2 {} |
15 changes: 8 additions & 7 deletions
15
...mmon/annotation/aspect/LogAnnoAspect.java → ...on/logging/anno/aspect/LogAnnoAspect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...n/annotation/aspect/LogServiceAspect.java → ...logging/anno/aspect/LogServiceAspect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...nnotation/aspect/WebRequestLogAspect.java → ...ging/anno/aspect/WebRequestLogAspect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.