We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d89e7 commit a20ce7fCopy full SHA for a20ce7f
src/main/java/cn/com/ttblog/ssmbootstrap_table/util/Config.java
@@ -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