This is an automated email from the ASF dual-hosted git repository. jianbin pushed a commit to branch 2.x in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push: new eb122fbcbd bugfix:fix @Async annotation not working. (#6592) eb122fbcbd is described below commit eb122fbcbdc5aadb6177e5dce5d20b07122f828d Author: TuWenlin <96557610+tuwen...@users.noreply.github.com> AuthorDate: Thu Jun 20 10:31:48 2024 +0800 bugfix:fix @Async annotation not working. (#6592) --- changes/en-us/2.x.md | 2 ++ changes/zh-cn/2.x.md | 2 ++ .../apache/seata/server/config/AsyncConfig.java | 25 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md index a13e24e1e6..5bdf3d12e7 100644 --- a/changes/en-us/2.x.md +++ b/changes/en-us/2.x.md @@ -43,6 +43,7 @@ Add changes here for all PR submitted to the 2.x branch. - [[#6555](https://github.com/apache/incubator-seata/pull/6555)] businessActionContext is compatible with io seata - [[#6553](https://github.com/apache/incubator-seata/pull/6553)] fix saga "cannot matching status" - [[#6575](https://github.com/apache/incubator-seata/pull/6575)] fix io.seata ActionInterceptorHandler use org.apache.seata BusinessActionContextParameter +- [[#6592](https://github.com/apache/incubator-seata/pull/6592)] fix @Async annotation not working in ClusterWatcherManager ### optimize: @@ -218,5 +219,6 @@ Thanks to these contributors for their code commits. Please report an unintended - [TakeActionNow2019](https://github.com/TakeActionNow2019) - [sunxunle](https://github.com/sunxunle) - [bageyang](https://github.com/bageyang) +- [tuwenlin](https://github.com/tuwenlin) Also, we receive many valuable issues, questions and advices from our community. Thanks for you all. diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md index 7df23f46f8..3160cb2c28 100644 --- a/changes/zh-cn/2.x.md +++ b/changes/zh-cn/2.x.md @@ -43,6 +43,7 @@ - [[#6555](https://github.com/apache/incubator-seata/pull/6555)] 修复businessActionContext对io seata包的不兼容 - [[#6553](https://github.com/apache/incubator-seata/pull/6553)] 修复执行完 'ServiceTask' 后无法应用任何评估器的问题 - [[#6575](https://github.com/apache/incubator-seata/pull/6575)] 修复io.seata ActionInterceptorHandler误使用了org.apache.seata BusinessActionContextParameter类的问题 +- [[#6592](https://github.com/apache/incubator-seata/pull/6592)] fix @Async注解ClusterWatcherManager中不生效的问题 ### optimize: @@ -215,5 +216,6 @@ - [TakeActionNow2019](https://github.com/TakeActionNow2019) - [sunxunle](https://github.com/sunxunle) - [bageyang](https://github.com/bageyang) +- [tuwenlin](https://github.com/tuwenlin) 同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。 diff --git a/server/src/main/java/org/apache/seata/server/config/AsyncConfig.java b/server/src/main/java/org/apache/seata/server/config/AsyncConfig.java new file mode 100644 index 0000000000..27d0d02672 --- /dev/null +++ b/server/src/main/java/org/apache/seata/server/config/AsyncConfig.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.seata.server.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.scheduling.annotation.EnableAsync; + +@Configuration +@EnableAsync(proxyTargetClass = true) +public class AsyncConfig { +} --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org