<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                用戶點個按鈕如何與服務端交互? 發布的HTTP接口如何訪問數據庫等其他操作? 發布EJB接口,客戶端調用即可 # 1、public定義interface ``` package nc.app.itf; import java.util.Map; import nc.vo.pub.BusinessException; /** * * @author Administrator * */ public interface IAppRestService { public Object doAction(String actionImpl ,Map params)throws BusinessException; } ``` # 2、private實現interface ``` package nc.app.impl; import java.util.Map; import nc.app.itf.IAppRestService; import nc.vo.pub.BusinessException; public class AppRestServiceImpl implements IAppRestService { public Object doAction(String actionImpl, Map params) throws BusinessException { return null; } } ``` # 3、 配置upm發布接口 tx="CMT" 表示啟用事物,"NONE" 表示不啟用事物 singleton="true" 表示單例 "false" 表示非單例 remote="true" 表示遠程組件 supportAlias="true" 表示支持別名 priority="0" 表示優先級為0 > 通常固定 配置 priority="0" remote="true" singleton="true" supportAlias="true" tx="CMT" 偶爾不需要事物 priority="0" remote="true" singleton="true" supportAlias="true" tx="NONE" ``` <public> <component priority="0" remote="true" singleton="true" supportAlias="true" tx="CMT"> <interface>nc.app.itf.IAppRestService</interface> <implementation>nc.app.impl.AppRestServiceImpl</implementation> </component> </public> ``` ![](https://img.kancloud.cn/30/31/3031e83980cdd9eae92d4c33560686ef_1172x484.png) # 4、EJB部署重啟 一般eclipse 重啟項目中間件即可生效,不生效可重啟,檢查upm文件的name是否重復,有些NCHOME有BUG不寫**name="pu20220220"** 會被其他接口覆蓋,默認是取文件名為 **name** 可以不配置**name** > module name="pu20220220" ![ ](images/screenshot_1645352682470.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看