feat(web): 新增链路跟踪自动配置

基于 TLog(轻量级的分布式日志标记追踪神器),并适配 Spring Boot 3.x
This commit is contained in:
2024-02-01 21:49:16 +08:00
parent eabedd861b
commit 8fc19ab9b8
16 changed files with 457 additions and 14 deletions

View File

@@ -52,6 +52,16 @@ public class PropertiesConstants {
*/
public static final String SPRINGDOC_SWAGGER_UI = SPRINGDOC + ".swagger-ui";
/**
* 安全配置
*/
public static final String SECURITY = CONTINEW_STARTER + ".security";
/**
* 密码编解码配置
*/
public static final String PASSWORD = SECURITY + ".password";
/**
* Web 配置
*/
@@ -62,6 +72,11 @@ public class PropertiesConstants {
*/
public static final String CORS = WEB + ".cors";
/**
* 链路配置
*/
public static final String TRACE = WEB + ".trace";
/**
* 日志配置
*/
@@ -91,9 +106,4 @@ public class PropertiesConstants {
* 行为验证码配置
*/
public static final String CAPTCHA_BEHAVIOR = CAPTCHA + ".behavior";
/**
* 密码编解码配置
*/
public static final String PASSWORD_ENCODER = CONTINEW_STARTER + ".password-encoder";
}

View File

@@ -63,4 +63,9 @@ public class StringConstants implements StrPool {
* 路径模式
*/
public static final String PATH_PATTERN = "/**";
/**
* 路径模式(仅匹配当前目录)
*/
public static final String PATH_PATTERN_CURRENT_DIR = "/*";
}