TeacherApplication.java 877 B

1234567891011121314151617181920212223242526272829
  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.Configuration;
  9. import org.springframework.scheduling.annotation.EnableAsync;
  10. /**
  11. * Hello world!
  12. *
  13. */
  14. @SpringBootApplication
  15. @EnableDiscoveryClient
  16. @EnableFeignClients({"com.keao.edu"})
  17. @MapperScan({"com.keao.edu.user.dao", "com.keao.edu.common.dao"})
  18. @Configuration
  19. @EnableSwagger2Doc
  20. @EnableAsync
  21. public class TeacherApplication {
  22. public static void main(String[] args) {
  23. SpringApplication.run(TeacherApplication.class, args);
  24. }
  25. }