chore: specify application name

This commit is contained in:
CaptainB 2023-12-09 11:12:32 +08:00 committed by 刘瑞斌
parent 68ace7a3b8
commit 5d3a5002b5
6 changed files with 12 additions and 12 deletions

View File

@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.api", "io.metersphere.system", "io.metersphere.project"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.api", "io.metersphere.system", "io.metersphere.project"})
public class Application { public class ApiApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(ApiApplication.class, args);
} }
} }

View File

@ -20,8 +20,8 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.bug"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.bug"})
public class Application { public class BugApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(BugApplication.class, args);
} }
} }

View File

@ -21,9 +21,9 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.functional"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.functional"})
public class Application { public class CaseApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(CaseApplication.class, args);
} }
} }

View File

@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project"})
public class Application { public class ProjectApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(ProjectApplication.class, args);
} }
} }

View File

@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system"})
public class Application { public class SystemApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(SystemApplication.class, args);
} }
} }

View File

@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan;
}) })
@ServletComponentScan @ServletComponentScan
@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.plan", "io.metersphere.system"}) @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.plan", "io.metersphere.system"})
public class Application { public class TestPlanApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(TestPlanApplication.class, args);
} }
} }