package com.ytpm;

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;

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