style: 优化部分代码及注释格式

This commit is contained in:
2024-01-31 00:35:53 +08:00
parent c03c082d2e
commit 8fe85e3a90
10 changed files with 60 additions and 64 deletions

View File

@@ -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("----------------------------------------------");

View File

@@ -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