CollectFeeServerApplication.java 890 B

12345678910111213141516171819202122232425
  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 springfox.documentation.swagger2.annotations.EnableSwagger2;
  10. @SpringBootApplication
  11. @MapperScan("com.ym.mec.collectfee.dao")
  12. @ComponentScan(basePackages="com.ym.mec.collectfee")
  13. @ServletComponentScan//filter才能生效
  14. @Configuration
  15. @EnableFeignClients
  16. @EnableSwagger2
  17. public class CollectFeeServerApplication {
  18. public static void main(String[] args) {
  19. SpringApplication.run(CollectFeeServerApplication.class, args);
  20. }
  21. }