nisbos


新增索引

<p><strong>简要描述:</strong> </p> <ul> <li>新增索引</li> </ul> <p><strong>入参:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">t</td> <td style="text-align: left;">是</td> <td style="text-align: left;">T</td> <td>Request对象</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { true }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">无</td> <td style="text-align: left;">boolean</td> <td>是否储存成功(true/false)</td> </tr> </tbody> </table> <p><strong>示例代码</strong></p> <pre><code class="language-java">ProductModel model = new ProductModel(); model.setUuid("1"); model.setName("test"); model.setDesc("boot"); elasticsearchTemplate2.save(model);</code></pre> <p><strong>接口</strong></p> <pre><code class="language-java">/** * 新增索引 * @param t */ public boolean save(T t) throws Exception;</code></pre>

页面列表

ITEM_HTML