CollectFeeServerApplication.java 999 B

1234567891011121314151617181920212223242526272829
  1. package com.ym.mec.collectfee;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.boot.web.servlet.ServletComponentScan;
  6. import org.springframework.cloud.openfeign.EnableFeignClients;
  7. import org.springframework.context.annotation.ComponentScan;
  8. import org.springframework.context.annotation.Configuration;
  9. import org.springframework.scheduling.annotation.EnableScheduling;
  10. import java.util.TimeZone;
  11. @SpringBootApplication
  12. @MapperScan("com.ym.mec.collectfee.dao")
  13. @ComponentScan(basePackages="com.ym.mec.collectfee")
  14. @ServletComponentScan//filter才能生效
  15. @Configuration
  16. @EnableFeignClients
  17. //@EnableSwagger2
  18. @EnableScheduling
  19. public class CollectFeeServerApplication {
  20. public static void main(String[] args) {
  21. TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
  22. SpringApplication.run(CollectFeeServerApplication.class, args);
  23. }
  24. }