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 org.springframework.scheduling.annotation.EnableScheduling; import java.util.TimeZone; @SpringBootApplication @MapperScan("com.ym.mec.collectfee.dao") @ComponentScan(basePackages="com.ym.mec.collectfee") @ServletComponentScan//filter才能生效 @Configuration @EnableFeignClients //@EnableSwagger2 @EnableScheduling public class CollectFeeServerApplication { public static void main(String[] args) { TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); SpringApplication.run(CollectFeeServerApplication.class, args); } }