Commit 96f51b72 authored by 钱坤's avatar 钱坤

启用srping的schedule功能

parent 7b7395a1
...@@ -8,6 +8,7 @@ import org.springframework.cloud.netflix.hystrix.EnableHystrix; ...@@ -8,6 +8,7 @@ import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableAsync @EnableAsync
@EnableHystrix @EnableHystrix
...@@ -19,6 +20,7 @@ import org.springframework.scheduling.annotation.EnableAsync; ...@@ -19,6 +20,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
"com.tanpu.fund" "com.tanpu.fund"
}) })
@MapperScan("com.tanpu.fund.mapper.generator") @MapperScan("com.tanpu.fund.mapper.generator")
@EnableScheduling
public class FundApplication { public class FundApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment