StudentServerApplication.java 966 B

123456789101112131415161718192021222324252627
  1. package com.keao.edu;
  2. import com.spring4all.swagger.EnableSwagger2Doc;
  3. import org.mybatis.spring.annotation.MapperScan;
  4. import org.springframework.boot.SpringApplication;
  5. import org.springframework.boot.autoconfigure.SpringBootApplication;
  6. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  7. import org.springframework.cloud.openfeign.EnableFeignClients;
  8. import org.springframework.context.annotation.ComponentScan;
  9. import org.springframework.context.annotation.Configuration;
  10. import org.springframework.scheduling.annotation.EnableAsync;
  11. @SpringBootApplication
  12. @EnableDiscoveryClient
  13. @EnableFeignClients({"com.keao.edu"})
  14. @MapperScan({"com.keao.edu.user.dao", "com.keao.edu.common.dao"})
  15. @ComponentScan(basePackages="com.keao.edu")
  16. @Configuration
  17. @EnableSwagger2Doc
  18. @EnableAsync
  19. public class StudentServerApplication{
  20. public static void main(String[] args) {
  21. SpringApplication.run(StudentServerApplication.class, args);
  22. }
  23. }