PigxAuthApplication.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. *
  3. * Copyright (c) 2018-2025, lengleng All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. *
  8. * Redistributions of source code must retain the above copyright notice,
  9. * this list of conditions and the following disclaimer.
  10. * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * Neither the name of the pig4cloud.com developer nor the names of its
  14. * contributors may be used to endorse or promote products derived from
  15. * this software without specific prior written permission.
  16. * Author: lengleng (wangiegie@gmail.com)
  17. *
  18. */
  19. package com.pig4cloud.pigx.auth;
  20. import org.springframework.boot.SpringApplication;
  21. import org.springframework.cloud.client.SpringCloudApplication;
  22. import org.springframework.cloud.openfeign.EnableFeignClients;
  23. import org.springframework.context.annotation.Bean;
  24. import org.springframework.web.client.RestTemplate;
  25. /**
  26. * @author lengleng
  27. * @date 2018年06月21日
  28. * 认证授权中心
  29. */
  30. @SpringCloudApplication
  31. @EnableFeignClients({"com.pig4cloud.pigx.admin.api.feign"})
  32. public class PigxAuthApplication {
  33. public static void main(String[] args) {
  34. SpringApplication.run(PigxAuthApplication.class, args);
  35. }
  36. @Bean
  37. public RestTemplate restTemplate() {
  38. return new RestTemplate();
  39. }
  40. }