mirror of
https://github.com/yzcheng90/X-SpringBoot
synced 2025-11-05 06:29:08 +08:00
add @EnableAsync
This commit is contained in:
@@ -3,8 +3,10 @@ package com.suke.czx;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
@Slf4j
|
||||
@EnableAsync
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
|
||||
@@ -12,4 +14,4 @@ public class Application {
|
||||
SpringApplication.run(Application.class, args);
|
||||
log.info("==================X-SpringBoot启动成功================");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user