MainApplication.java 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package cn.gygxzc.cloud.tina.eureka;
  2. import cn.gygxzc.cloud.tina.auth.EnableTinaAuth;
  3. import cn.gygxzc.tina.cloud.jwt.session.EnableJwtRedisSession;
  4. import org.mybatis.spring.annotation.MapperScan;
  5. import org.springframework.amqp.rabbit.annotation.EnableRabbit;
  6. import org.springframework.boot.SpringApplication;
  7. import org.springframework.boot.autoconfigure.SpringBootApplication;
  8. import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
  9. import org.springframework.cloud.config.server.EnableConfigServer;
  10. import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
  11. import org.springframework.cloud.openfeign.EnableFeignClients;
  12. /**
  13. * Created by niantuo on 2018/10/19.
  14. * 注册中心服务
  15. */
  16. @EnableRabbit
  17. @EnableTinaAuth
  18. @EnableEurekaServer
  19. @EnableConfigServer
  20. @EnableFeignClients
  21. @EnableJwtRedisSession
  22. @MapperScan("cn.gygxzc.**.dao")
  23. @SpringBootApplication(scanBasePackages = {"cn.gygxzc.cloud"}, exclude = {RedisAutoConfiguration.class})
  24. public class MainApplication {
  25. public static void main(String[] args) {
  26. SpringApplication.run(MainApplication.class, args);
  27. }
  28. }