refactor(log): 默认启用日志

This commit is contained in:
2024-02-04 23:16:06 +08:00
parent 1ba1596f4e
commit 2aea8ba831
2 changed files with 2 additions and 2 deletions

View File

@@ -30,6 +30,6 @@ import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@ConditionalOnProperty(prefix = PropertiesConstants.LOG, name = PropertiesConstants.ENABLED, havingValue = "true")
@ConditionalOnProperty(prefix = PropertiesConstants.LOG, name = PropertiesConstants.ENABLED, havingValue = "true", matchIfMissing = true)
public @interface ConditionalOnEnabledLog {
}

View File

@@ -35,7 +35,7 @@ public class LogProperties {
/**
* 是否启用日志
*/
private boolean enabled = false;
private boolean enabled = true;
/**
* 是否打印日志,开启后可打印访问日志(类似于 Nginx access log