|
|
@ -17,21 +17,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.api; |
|
|
|
package org.apache.dolphinscheduler.api; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder; |
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.FilterType; |
|
|
|
import org.springframework.context.annotation.FilterType; |
|
|
|
|
|
|
|
|
|
|
|
@SpringBootApplication |
|
|
|
@EnableAutoConfiguration |
|
|
|
@ServletComponentScan |
|
|
|
@ServletComponentScan |
|
|
|
@ComponentScan(value = "org.apache.dolphinscheduler", |
|
|
|
@ComponentScan(value = "org.apache.dolphinscheduler", excludeFilters = { |
|
|
|
excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.apache.dolphinscheduler.server.*")) |
|
|
|
@ComponentScan.Filter(type = FilterType.REGEX, pattern = { |
|
|
|
|
|
|
|
"org.apache.dolphinscheduler.server.*", |
|
|
|
|
|
|
|
"org.apache.dolphinscheduler.alert.*" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
public class ApiApplicationServer extends SpringBootServletInitializer { |
|
|
|
public class ApiApplicationServer extends SpringBootServletInitializer { |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
SpringApplication.run(ApiApplicationServer.class, args); |
|
|
|
new SpringApplicationBuilder(ApiApplicationServer.class).profiles("api").run(args); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|