diff --git a/austin-cron/src/main/java/com/java3y/austin/cron/config/AsyncConfiguration.java b/austin-cron/src/main/java/com/java3y/austin/cron/config/AsyncConfiguration.java index 0333cf2..fcf14cb 100644 --- a/austin-cron/src/main/java/com/java3y/austin/cron/config/AsyncConfiguration.java +++ b/austin-cron/src/main/java/com/java3y/austin/cron/config/AsyncConfiguration.java @@ -29,13 +29,13 @@ public class AsyncConfiguration implements AsyncConfigurer { public ThreadPoolTaskExecutor executor(AsyncExecutionProperties properties) { log.info("funExecutor -- init "); ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(properties.getCoreSize()); // 核心线程数 - executor.setMaxPoolSize(properties.getMaxSize()); // 最大线程数 - executor.setKeepAliveSeconds(properties.getKeepAlive()); // 最大存活时间 - executor.setQueueCapacity(properties.getQueueCapacity()); // 阻塞队列容量 - executor.setThreadNamePrefix(properties.getThreadNamePrefix()); // 设置名称前缀 - executor.setRejectedExecutionHandler(properties.getRejectedHandler().getHandler());// 设置拒绝策略 - executor.setAllowCoreThreadTimeOut(properties.isAllowCoreThreadTimeout());// 是否允许核心线程超时 + executor.setCorePoolSize(properties.getCoreSize()); + executor.setMaxPoolSize(properties.getMaxSize()); + executor.setKeepAliveSeconds(properties.getKeepAlive()); + executor.setQueueCapacity(properties.getQueueCapacity()); + executor.setThreadNamePrefix(properties.getThreadNamePrefix()); + executor.setRejectedExecutionHandler(properties.getRejectedHandler().getHandler()); + executor.setAllowCoreThreadTimeOut(properties.isAllowCoreThreadTimeout()); executor.setWaitForTasksToCompleteOnShutdown(properties.isWaitForTasksToCompleteOnShutDown()); executor.setAwaitTerminationSeconds(properties.getAwaitTerminationSeconds()); log.info("austinExecutor: {} ", executor); diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/domain/OfficialAccountParam.java b/austin-handler/src/main/java/com/java3y/austin/handler/domain/OfficialAccountParam.java index 61309ee..dd97e83 100644 --- a/austin-handler/src/main/java/com/java3y/austin/handler/domain/OfficialAccountParam.java +++ b/austin-handler/src/main/java/com/java3y/austin/handler/domain/OfficialAccountParam.java @@ -8,10 +8,12 @@ import lombok.NoArgsConstructor; import java.util.Map; /** + * * 模板消息参数 *
* 参数示例:
* https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
+ * * @author zyg
*/
@Data
@Builder
diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/handler/OfficialAccountHandler.java b/austin-handler/src/main/java/com/java3y/austin/handler/handler/OfficialAccountHandler.java
index 9d7a158..9207852 100644
--- a/austin-handler/src/main/java/com/java3y/austin/handler/handler/OfficialAccountHandler.java
+++ b/austin-handler/src/main/java/com/java3y/austin/handler/handler/OfficialAccountHandler.java
@@ -17,6 +17,10 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
+/**
+ * @author zyg
+ * 微信服务号推送处理
+ */
@Component
@Slf4j
public class OfficialAccountHandler extends BaseHandler implements Handler {
diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/script/OfficialAccountScript.java b/austin-handler/src/main/java/com/java3y/austin/handler/script/OfficialAccountScript.java
index 9f3933a..47f0762 100644
--- a/austin-handler/src/main/java/com/java3y/austin/handler/script/OfficialAccountScript.java
+++ b/austin-handler/src/main/java/com/java3y/austin/handler/script/OfficialAccountScript.java
@@ -4,6 +4,9 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage;
import java.util.List;
+/**
+ * @author zyg
+ */
public interface OfficialAccountScript {
/**
diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/script/WxMpTemplateScript.java b/austin-handler/src/main/java/com/java3y/austin/handler/script/WxMpTemplateScript.java
index 56d4c63..2790bd1 100644
--- a/austin-handler/src/main/java/com/java3y/austin/handler/script/WxMpTemplateScript.java
+++ b/austin-handler/src/main/java/com/java3y/austin/handler/script/WxMpTemplateScript.java
@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.List;
/**
- *
+ * @author zyg
*/
@Service
@Slf4j
diff --git a/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java b/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java
index c843f0f..ae3f868 100644
--- a/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java
+++ b/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java
@@ -5,7 +5,6 @@ import org.springframework.expression.spel.support.StandardEvaluationContext;
import org.springframework.util.PropertyPlaceholderHelper;
import java.text.MessageFormat;
-import java.util.HashMap;
import java.util.Map;
/**
@@ -64,12 +63,4 @@ public class ContentHolderUtil {
}
}
- public static void main(String[] args) {
- Map