package com.ytpm.middle;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RestController;

//@EnableScheduling
@RestController
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = "com.ytpm.middle.dao")
@EnableFeignClients(basePackages = {"com.ytpm.feign", "com.ytpm.*.feign"})
public class MiddleApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(MiddleApplication.class, args);
    }
}
