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.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication
//对外开启暴露获取token的API接口
@EnableResourceServer
@EnableDiscoveryClient
@MapperScan(basePackages = "com.ytpm.dao")
//@EnableFeignClients(basePackages = {"com.zlsk.feign"})
public class OauthApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(OauthApplication.class, args);
    }
}
