style: 优化部分注释及注解使用

This commit is contained in:
2023-11-22 22:59:23 +08:00
parent b4894f5b4f
commit 735323c2e3
3 changed files with 4 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ import java.util.List;
public class CorsProperties { public class CorsProperties {
/** /**
* 是否启用 * 是否启用跨域配置
*/ */
private boolean enabled = false; private boolean enabled = false;

View File

@@ -17,6 +17,7 @@
package top.charles7c.continew.starter.core.autoconfigure.threadpool; package top.charles7c.continew.starter.core.autoconfigure.threadpool;
import cn.hutool.core.util.ArrayUtil; import cn.hutool.core.util.ArrayUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.AutoConfiguration;
@@ -40,16 +41,13 @@ import java.util.concurrent.ScheduledExecutorService;
@Slf4j @Slf4j
@Lazy @Lazy
@AutoConfiguration @AutoConfiguration
@RequiredArgsConstructor
@ConditionalOnProperty(prefix = "thread-pool", name = "enabled", havingValue = "true") @ConditionalOnProperty(prefix = "thread-pool", name = "enabled", havingValue = "true")
@EnableAsync(proxyTargetClass = true) @EnableAsync(proxyTargetClass = true)
public class AsyncAutoConfiguration implements AsyncConfigurer { public class AsyncAutoConfiguration implements AsyncConfigurer {
private final ScheduledExecutorService scheduledExecutorService; private final ScheduledExecutorService scheduledExecutorService;
public AsyncAutoConfiguration(ScheduledExecutorService scheduledExecutorService) {
this.scheduledExecutorService = scheduledExecutorService;
}
/** /**
* 异步任务 @Async 执行时,使用 Java 内置线程池 * 异步任务 @Async 执行时,使用 Java 内置线程池
*/ */

View File

@@ -31,7 +31,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class ThreadPoolProperties { public class ThreadPoolProperties {
/** /**
* 是否启用 * 是否启用线程池配置
*/ */
private boolean enabled = false; private boolean enabled = false;