WorkCalendarApplication.java 1017 B

123456789101112131415161718192021222324252627
  1. package com.persagy;
  2. import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  6. import org.springframework.cloud.openfeign.EnableFeignClients;
  7. import org.springframework.scheduling.annotation.EnableScheduling;
  8. import org.springframework.transaction.annotation.EnableTransactionManagement;
  9. import com.persagy.common.annotation.EnableControllerLog;
  10. import com.persagy.common.annotation.EnableIdGenerator;
  11. @EnableScheduling
  12. @EnableIdGenerator
  13. @EnableControllerLog
  14. @EnableDiscoveryClient
  15. @SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
  16. @EnableTransactionManagement
  17. @EnableFeignClients(basePackages = "com.persagy.calendar.client")
  18. public class WorkCalendarApplication {
  19. public static void main(String[] args) {
  20. SpringApplication.run(WorkCalendarApplication.class, args);
  21. }
  22. }