AdminApplication.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * BladeX Commercial License Agreement
  3. * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
  4. * <p>
  5. * Use of this software is governed by the Commercial License Agreement
  6. * obtained after purchasing a license from BladeX.
  7. * <p>
  8. * 1. This software is for development use only under a valid license
  9. * from BladeX.
  10. * <p>
  11. * 2. Redistribution of this software's source code to any third party
  12. * without a commercial license is strictly prohibited.
  13. * <p>
  14. * 3. Licensees may copyright their own code but cannot use segments
  15. * from this software for such purposes. Copyright of this software
  16. * remains with BladeX.
  17. * <p>
  18. * Using this software signifies agreement to this License, and the software
  19. * must not be used for illegal purposes.
  20. * <p>
  21. * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
  22. * not liable for any claims arising from secondary or illegal development.
  23. * <p>
  24. * Author: Chill Zhuang (bladejava@qq.com)
  25. */
  26. package org.springblade.admin;
  27. import de.codecentric.boot.admin.server.config.EnableAdminServer;
  28. import org.springblade.core.launch.BladeApplication;
  29. import org.springblade.core.launch.constant.AppConstant;
  30. import org.springframework.boot.autoconfigure.SpringBootApplication;
  31. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  32. /**
  33. * admin启动器
  34. *
  35. * @author Chill
  36. */
  37. @EnableAdminServer
  38. @EnableDiscoveryClient
  39. @SpringBootApplication
  40. public class AdminApplication {
  41. public static void main(String[] args) {
  42. BladeApplication.run(AppConstant.APPLICATION_ADMIN_NAME, AdminApplication.class, args);
  43. }
  44. }