首页 > 其他分享 >疑难问题1

疑难问题1

时间:2022-11-05 16:25:01浏览次数:47  
标签:疑难问题 -- builder RequestOptions static RestHighLevelClient public


2:集合 和数组的区别?arrayList

 2.1--数组 --长度固定的

 

 2-2 arrayList 属于类集框架的一种类型

 

 

 

 

 

 

 

 

 

   

 

 

 

 

@Configuration
public class MallElasticSearchConfiguraction {

public static final RequestOptions COMMON_OPTIOINS;
static {
RequestOptions.Builder builder= RequestOptions.DEFAULT.toBuilder();
COMMON_OPTIOINS =builder.build();
}
@Bean
public RestHighLevelClient restHighLevelClient(){
RestClientBuilder builder = RestClient.builder(new HttpHost("192.168.110.222",9200,"http"));
RestHighLevelClient client = new RestHighLevelClient(builder);
return client;
}
}

  

======
===商品上架问题===
查询商品列表出问题--
2:上架也有问题
====

<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.msb.mall.product.entity.CategoryEntity" id="categoryMap">
<result property="catId" column="cat_id"/>
<result property="name" column="name"/>
<result property="parentCid" column="parent_cid"/>
<result property="catLevel" column="cat_level"/>
<result property="showStatus" column="show_status"/>
<result property="sort" column="sort"/>
<result property="icon" column="icon"/>
<result property="productUnit" column="product_unit"/>
<result property="productCount" column="product_count"/>
</resultMap>
<select id="queryLevel1Category" resultMap="categoryMap">
SELECT * FROM pms_category WHERE parent_cid = 0
</select>
<select id="queryLevel1Category" resultType="com.msb.mall.product.entity.CategoryEntity">
SELECT * FROM pms_category WHERE parent_cid = 0
</select>

 

标签:疑难问题,--,builder,RequestOptions,static,RestHighLevelClient,public
From: https://www.cnblogs.com/liyanxi/p/16859949.html

相关文章