You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
809 B

1 year ago
1 year ago
  1. package com.spring.ifs.api;
  2. import ifs.fnd.ap.Server;
  3. import org.springframework.beans.factory.annotation.Value;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * @description: 获取IFS Server
  7. * @author LR
  8. * @date 2024/12/9 10:57
  9. * @version 1.0
  10. */
  11. @Component
  12. public class IfsServer {
  13. @Value("${ifs.target.url}")
  14. private String ifsTargetUrl;
  15. /**
  16. * @description: 获取IFS所需的链接
  17. * @author LR
  18. * @date 2024/12/9 11:08
  19. * @version 1.0
  20. */
  21. public Server getIfsServer(String username, String passWord){
  22. Server srv = new Server();
  23. srv.setConnectionString(ifsTargetUrl);// 测试期间使用固定配置文件
  24. srv.setCredentials(username, passWord);//配置文件
  25. //srv.setRunAs(""); 后续需要修改
  26. return srv;
  27. }
  28. }