多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 组件源码 ``` /** * <b>方法描述:</b> 获取系统变量 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-18 16:08:04 <br/> * * @param varkey * 入参|变量名称|{@link java.lang.String} * @param def * 入参|默认值|{@link java.lang.String} * @param varValue * 出参|变量值|{@link java.lang.String} * @return 1 成功<br/> */ @Component(label = "获取系统变量", style = "判断型", type = "同步组件", comment = "获得系统变量,调用system.getProperty", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-18 04:08:04") @InParams(param = {@Param(name = "varkey", comment = "变量名称", type = java.lang.String.class), @Param(name = "def", comment = "默认值", type = java.lang.String.class)}) @OutParams(param = {@Param(name = "varValue", comment = "变量值", type = java.lang.String.class)}) @Returns(returns = {@Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_getSysVar(String varkey, String def) { if (!StringUtil.isEmpty(def)) return ResultBase.newSuccessResult(System.getProperty(varkey, def)); else return ResultBase.newSuccessResult(System.getProperty(varkey)); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/f6/21/f621d282702cd32f8d99b6ee2671c99d_1870x891.png) # 参数说明及示例 ## 入口参数 变量名称:输入想要获取的变量名称,示例: `"user.home"` 默认值:可以填,也可以不填 ## 出口参数 变量值:根据输入参数,返回的变量值,示例: `__INNER__["result"]`