Skip to content

Commit a20ce7f

Browse files
committed
update
1 parent e1d89e7 commit a20ce7f

File tree

1 file changed

+15
-0
lines changed
  • src/main/java/cn/com/ttblog/ssmbootstrap_table/util

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package cn.com.ttblog.ssmbootstrap_table.util;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.scheduling.annotation.EnableAsync;
5+
6+
/**
7+
* 启用异步方法
8+
* 发现在xml中配置<task:annotation-driven></task:annotation-driven>不生效,
9+
* 基于java config是生效的
10+
* http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/scheduling/annotation/EnableAsync.html
11+
*/
12+
@Configuration
13+
@EnableAsync
14+
public class Config {
15+
}

0 commit comments

Comments
 (0)