mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 08:57:14 +08:00
style: 优化部分代码及注释格式
This commit is contained in:
@@ -32,6 +32,8 @@ import org.springframework.boot.autoconfigure.web.ServerProperties;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperties;
|
||||
import top.charles7c.continew.starter.core.constant.PropertiesConstants;
|
||||
import top.charles7c.continew.starter.core.constant.StringConstants;
|
||||
import top.charles7c.continew.starter.extension.crud.annotation.EnableCrudRestController;
|
||||
import top.charles7c.continew.starter.web.annotation.EnableGlobalExceptionHandler;
|
||||
|
||||
@@ -81,7 +83,8 @@ public class ContiNewAdminApplication implements ApplicationRunner {
|
||||
log.info("----------------------------------------------");
|
||||
log.info("{} service started successfully.", projectProperties.getName());
|
||||
log.info("API 地址:{}", baseUrl);
|
||||
if (SpringUtil.getProperty("springdoc.swagger-ui.enabled", boolean.class, false)) {
|
||||
String docEnabledProperty = PropertiesConstants.SPRINGDOC_SWAGGER_UI + StringConstants.DOT + PropertiesConstants.ENABLED;
|
||||
if (Boolean.TRUE.equals(SpringUtil.getProperty(docEnabledProperty, boolean.class, false))) {
|
||||
log.info("API 文档:{}/doc.html", baseUrl);
|
||||
}
|
||||
log.info("----------------------------------------------");
|
||||
|
@@ -37,6 +37,11 @@ continew-starter.log:
|
||||
## 项目日志配置
|
||||
logging:
|
||||
config: classpath:logback-spring.xml
|
||||
## TLog 链路追踪配置
|
||||
tlog:
|
||||
enable-invoke-time-print: false
|
||||
pattern: '[$spanId][$traceId]'
|
||||
mdc-enable: false
|
||||
|
||||
--- ### 线程池配置
|
||||
continew-starter.thread-pool:
|
||||
@@ -247,10 +252,4 @@ generator:
|
||||
packageName: service.impl
|
||||
Controller:
|
||||
templatePath: generator/Controller.ftl
|
||||
packageName: controller
|
||||
|
||||
--- ### TLog
|
||||
tlog:
|
||||
enable-invoke-time-print: true
|
||||
pattern: '[$spanId][$traceId]'
|
||||
mdc-enable: false
|
||||
packageName: controller
|
Reference in New Issue
Block a user