|
@@ -43,16 +43,12 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
-import org.springframework.context.annotation.FilterType;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@EnableTransactionManagement
|
|
|
-@ComponentScan(basePackages = "org.apache.dolphinscheduler", excludeFilters = {
|
|
|
- @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = DataSourceAutoConfiguration.class)
|
|
|
-})
|
|
|
+@ComponentScan(basePackages = "org.apache.dolphinscheduler")
|
|
|
@Slf4j
|
|
|
public class WorkerServer implements IStoppable {
|
|
|
|