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.
|
|
package com.spring.ifs.api;
import ifs.fnd.ap.Server;import org.springframework.beans.factory.annotation.Value;import org.springframework.stereotype.Component;
/*** @description: 获取IFS Server* @author LR* @date 2024/12/9 10:57* @version 1.0*/@Componentpublic class IfsServer {
@Value("${ifs.target.url}") private String ifsTargetUrl;
/** * @description: 获取IFS所需的链接 * @author LR * @date 2024/12/9 11:08 * @version 1.0 */ public Server getIfsServer(String username, String passWord){ Server srv = new Server(); srv.setConnectionString(ifsTargetUrl);// 测试期间使用固定配置文件
srv.setCredentials(username, passWord);//配置文件
//srv.setRunAs(""); 后续需要修改
return srv; }
}
|