ManageApplication.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.zanxiang.game.manage;
  2. import lombok.extern.slf4j.Slf4j;
  3. import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
  4. import org.mybatis.spring.annotation.MapperScan;
  5. import org.springframework.boot.SpringApplication;
  6. import org.springframework.boot.autoconfigure.SpringBootApplication;
  7. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  8. import springfox.documentation.swagger2.annotations.EnableSwagger2;
  9. /**
  10. * @author : lingfeng
  11. * @time : 2022-11-25
  12. * @description : 启动类
  13. */
  14. @Slf4j
  15. @EnableDiscoveryClient
  16. @SpringBootApplication
  17. @MapperScan({"com.zanxiang.mybatis.mapper"})
  18. @EnableDubbo
  19. @EnableSwagger2
  20. public class ManageApplication {
  21. public static void main(String[] args) {
  22. SpringApplication.run(ManageApplication.class, args);
  23. System.out.println("赞象Manage服务启动成功opQ ( ´・・)ノ(._.`) \n" +
  24. " ______ __ __ \n" +
  25. "/_____/\\/__/\\ /__/\\ \n" +
  26. "\\:::__\\/\\ \\::\\\\:.\\ \\ \n" +
  27. " /: / \\_\\::_\\:_\\/ \n" +
  28. " /::/___ _\\/__\\_\\_/\\ \n" +
  29. " /_:/____/\\\\ \\ \\ \\::\\ \\\n" +
  30. " \\_______\\/ \\_\\/ \\__\\/\n");
  31. }
  32. }