💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 组件源码 ``` /** * <b>方法描述:</b> 清理数据源 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-04-26 15:32:37 <br/> * * @return 1 成功<br/> */ @Component(label = "清理数据源", style = "处理型", type = "同步组件", comment = "清理交易使用的数据源,改变只在当前线程生效", version = "1.0.0", deprecated = false, author = "admin", date = "2020-04-26 03:32:37") @Returns(returns = {@Return(id = "1", desp = "成功")}) public static ResultBase P_clearDatesource() { DbContextHolder.clearDbType(); return ResultBase.newSuccessResult(); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/e1/c4/e1c4b6e1992ee6c177e4e049b6c7a222_1867x893.png)