PropertyService.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * *************************************************
  3. * Copyright (c) 2018 QMTH. All Rights Reserved.
  4. * Created by Deason on 2018-07-17 11:15:46.
  5. * *************************************************
  6. */
  7. package cn.com.qmth.examcloud.app.service;
  8. import org.slf4j.Logger;
  9. import org.slf4j.LoggerFactory;
  10. import org.springframework.beans.factory.annotation.Value;
  11. import org.springframework.stereotype.Component;
  12. /**
  13. * 属性配置服务类
  14. */
  15. @Component
  16. public class PropertyService {
  17. private static Logger log = LoggerFactory.getLogger(PropertyService.class);
  18. @Value("${examcloud.exam.admin.url}")
  19. private String examAdminUrl;
  20. @Value("${examcloud.online.exam.url}")
  21. private String onlineExamUrl;
  22. @Value("${examcloud.question.pool.url}")
  23. private String questionPoolUrl;
  24. @Value("${examcloud.user.auth.url}")
  25. private String userAuthUrl;
  26. @Value("${examcloud.upyun.url}")
  27. private String upYunUrl;
  28. public String getExamAdminUrl() {
  29. return examAdminUrl;
  30. }
  31. public String getOnlineExamUrl() {
  32. return onlineExamUrl;
  33. }
  34. public String getQuestionPoolUrl() {
  35. return questionPoolUrl;
  36. }
  37. public String getUserAuthUrl() {
  38. return userAuthUrl;
  39. }
  40. public String getUpYunUrl() {
  41. return upYunUrl;
  42. }
  43. }