package com.ym.mec.collectfee; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import springfox.documentation.swagger2.annotations.EnableSwagger2; @SpringBootApplication @MapperScan("com.ym.mec.collectfee.dao") @ComponentScan(basePackages="com.ym.mec.collectfee") @ServletComponentScan//filter才能生效 @Configuration @EnableFeignClients @EnableSwagger2 public class CollectFeeServerApplication { public static void main(String[] args) { SpringApplication.run(CollectFeeServerApplication.class, args); } }