|
|
|
@ -1,14 +1,9 @@
|
|
|
|
|
package com.charge;
|
|
|
|
|
|
|
|
|
|
import com.charge.filter.CorsFilter;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
|
|
|
import org.springframework.cloud.netflix.feign.EnableFeignClients;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
@ -19,7 +14,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
|
|
|
|
/**
|
|
|
|
|
* Created by Administrator on 2017/8/15.
|
|
|
|
|
*/
|
|
|
|
|
@ComponentScan("com.charge")
|
|
|
|
|
@SpringBootApplication
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
@EnableTransactionManagement
|
|
|
|
|