|
@@ -9,14 +9,16 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
+import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@EnableDiscoveryClient
|
|
|
@EnableFeignClients
|
|
|
@MapperScan("com.rongwei.*.*.dao")
|
|
|
-//@EnableDistributedTransaction
|
|
|
+
|
|
|
@ComponentScan(basePackages = {"com.rongwei"},excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,
|
|
|
classes = {BaseMetaObjectHandler.class}))
|
|
|
+@EnableScheduling
|
|
|
public class RwTrainingApplication {
|
|
|
|
|
|
public static void main(String[] args) {
|