|
|
@@ -7,6 +7,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
import org.springframework.cache.annotation.EnableCaching;
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
+import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -15,6 +16,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
* @author skyline
|
|
|
*/
|
|
|
@EnableAsync
|
|
|
+@EnableScheduling
|
|
|
@SpringBootApplication(scanBasePackages = {"com.kym"}, exclude = DataSourceAutoConfiguration.class)
|
|
|
//@ComponentScan(basePackages = {"com.kym"},excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.kym.admin.*"))
|
|
|
@MapperScan(basePackages = {"com.kym.mapper"})
|