更新sql和代码规范修改

This commit is contained in:
moxiangrong
2024-02-18 15:26:45 +08:00
parent 6f5e6e4662
commit c132b68745
1293 changed files with 43935 additions and 18456 deletions

View File

@ -15,7 +15,8 @@ import org.springframework.context.annotation.Bean;
*/
@AutoConfiguration
@ConditionalOnClass({MeterRegistryCustomizer.class})
@ConditionalOnProperty(prefix = "yshop.metrics", value = "enable", matchIfMissing = true) // 允许使用 yshop.metrics.enable=false 禁用 Metrics
@ConditionalOnProperty(prefix = "yshop.metrics", value = "enable", matchIfMissing = true)
// 允许使用 yshop.metrics.enable=false 禁用 Metrics
public class YshopMetricsAutoConfiguration {
@Bean

View File

@ -4,7 +4,7 @@ import java.lang.annotation.*;
/**
* 打印业务编号 / 业务类型注解
*
* <p>
* 使用时,需要设置 SkyWalking OAP Server 的 application.yaml 配置文件,修改 SW_SEARCHABLE_TAG_KEYS 配置项,
* 增加 biz.type 和 biz.id 两值,然后重启 SkyWalking OAP Server 服务器。
*

View File

@ -19,7 +19,7 @@ public class TracerFrameworkUtils {
* 将异常记录到 Span 中,参考自 com.aliyuncs.utils.TraceUtils
*
* @param throwable 异常
* @param span Span
* @param span Span
*/
public static void onError(Throwable throwable, Span span) {
Tags.ERROR.set(span, Boolean.TRUE);