package cn.gygxzc.cloud.tina.eureka; import cn.gygxzc.cloud.tina.auth.EnableTinaAuth; import cn.gygxzc.tina.cloud.jwt.session.EnableJwtRedisSession; import org.mybatis.spring.annotation.MapperScan; import org.springframework.amqp.rabbit.annotation.EnableRabbit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; import org.springframework.cloud.config.server.EnableConfigServer; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; import org.springframework.cloud.openfeign.EnableFeignClients; /** * Created by niantuo on 2018/10/19. * 注册中心服务 */ @EnableRabbit @EnableTinaAuth @EnableEurekaServer @EnableConfigServer @EnableFeignClients @EnableJwtRedisSession @MapperScan("cn.gygxzc.**.dao") @SpringBootApplication(scanBasePackages = {"cn.gygxzc.cloud"}, exclude = {RedisAutoConfiguration.class}) public class MainApplication { public static void main(String[] args) { SpringApplication.run(MainApplication.class, args); } }