|
@@ -0,0 +1,25 @@
|
|
|
+package com.ym.mec.education;
|
|
|
+
|
|
|
+import org.mybatis.spring.annotation.MapperScan;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
+import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
+import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
+import org.springframework.context.annotation.ComponentScan;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
+
|
|
|
+import com.spring4all.swagger.EnableSwagger2Doc;
|
|
|
+
|
|
|
+@SpringBootApplication
|
|
|
+@EnableDiscoveryClient
|
|
|
+@EnableFeignClients("com.ym.mec")
|
|
|
+@MapperScan("com.ym.mec.biz.dal.dao")
|
|
|
+@ComponentScan(basePackages = "com.ym.mec")
|
|
|
+@Configuration
|
|
|
+@EnableSwagger2Doc
|
|
|
+public class EducationApplication {
|
|
|
+ public static void main(String[] args) {
|
|
|
+ SpringApplication.run(EducationApplication.class, args);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|