ES查询语句
记录常用的es 查询 聚合
GET _cat / indices
GET / p_ext_develop / _mapping / g
GET / p_ext_develop / _analyze {
"field": "other_name_en",
"text": "(3S)-N-Boc-2-azabicyclo[2.2.1]heptane-3-carboxylicacid;"
}
GET / hs2840 / _analyze {
"query": {
"term": {
"cas": {
"value": "29173500"
}
},
"range": {
"exportmonth": {
"from": "2018-01",
"to": "2018-12"
}
}
}
}
GET / p_ext_develop / g / _search {
"query": {
"constant_score": {
"filter": {
"term": {
"products_name_en.text": "Benzoic Acid"
}
},
"boost": 1.2
}
}
}
GET / p_ext_develop / g / _search {
"query": {
"filtered": {
"filter": {
"bool": {
"should": [{
"term": {
"other_name_en": "acid"
}
}]
}
}
}
}
}
#
DELETE / p_ext_develop
GET / p_ext_develop / g / _search {
"size": 300,
"query": {
"function_score": {
"query": {
"bool": {
"should": [{
"query_string": {
"fields": ["products_name_en", "other_name_en"],
"query": "Benzoic acid"
}
},
{
"term": {
"delflag": "0"
}
}
]
}
},
"functions": [{
"filter": {
"term": {
"products_name_en": "Benzoic acid"
}
},
"weight": 15
},
{
"filter": {
"regexp": {
"products_name_en": "[Bb]enzoic [Aa]cid"
}
},
"weight": 13
},
{
"filter": {
"regexp": {
"products_name_en": "[Bb]enzoic [Aa]cid.*"
}
},
"weight": 12
},
{
"filter": {
"term": {
"other_name_en": "Benzoic acid"
}
},
"weight": 10
},
{
"filter": {
"regexp": {
"other_name_en": "[Bb]enzoic [Aa]cid"
}
},
"weight": 8
},
{
"filter": {
"regexp": {
"other_name_en": "[Bb]enzoic [Aa]cid.*"
}
},
"weight": 7
},
{
"filter": {
"query_string": {
"fields": ["products_name_en"],
"query": "Benzoic acid"
}
},
"weight": 2
}
]
}
},
"sort": [{
"_score": {
"order": "desc"
}
},
{
"supplier_count": {
"order": "desc"
}
}
]
}
GET / p_ext_develop / g / _search {
"query": {
"function_score": {
"query": {
"match_all": {}
},
"functions": [{
"filter": {
"term": {
"products_name_en.text": "[Bb]enzoic [Aa]cid"
}
},
"weight": 30
},
{
"filter": {
"prefix": {
"products_name_en.text": "Benzoic Acid"
}
},
"weight": 29
},
{
"filter": {
"query": {
"wildcard": {
"products_name_en.text": {
"value": "Benzoic Acid"
}
}
}
},
"weight": 28
},
{
"filter": {
"term": {
"other_name_en.text": "Benzoic Acid"
}
},
"weight": 27
},
{
"filter": {
"prefix": {
"other_name_en.text": "Benzoic Acid"
}
},
"weight": 26
},
{
"filter": {
"query": {
"wildcard": {
"other_name_en.text": {
"value": "Benzoic Acid"
}
}
}
},
"weight": 25
}
]
}
}
}
GET / p_ext_develop / g / _search {
"size": 300,
"query": {
"function_score": {
"query": {
"bool": {
"must": [{
"query_string": {
"fields": ["products_name_en", "other_name_en"],
"query": "Benzoic acid"
}
},
{
"term": {
"delflag": "0"
}
}
]
}
},
"functions": [{
"filter": {
"term": {
"products_name_en.text": "Benzoic acid"
}
},
"weight": 15
},
{
"filter": {
"regexp": {
"products_name_en.text": "[Bb]enzoic [Aa]cid"
}
},
"weight": 13
},
{
"filter": {
"regexp": {
"products_name_en.text": "[Bb]enzoic [Aa]cid.*"
}
},
"weight": 12
},
{
"filter": {
"term": {
"other_name_en.text": "Benzoic acid"
}
},
"weight": 10
},
{
"filter": {
"regexp": {
"other_name_en.text": "[Bb]enzoic [Aa]cid"
}
},
"weight": 8
},
{
"filter": {
"regexp": {
"other_name_en.text": "[Bb]enzoic [Aa]cid.*"
}
},
"weight": 7
},
{
"filter": {
"query_string": {
"fields": ["products_name_en"],
"query": "Benzoic acid"
}
},
"weight": 2
}
]
}
},
"sort": [{
"_score": {
"order": "desc"
}
},
{
"supplier_count": {
"order": "desc"
}
}
]
}
PUT / p_ext_develop {
"mappings": {
"g": {
"properties": {
"application": {
"type": "string"
},
"cas_no": {
"type": "string",
"index": "not_analyzed"
},
"delflag": {
"type": "string"
},
"other_name_en": {
"type": "string",
"fields": {
"text": {
"type": "string",
"index": "not_analyzed"
}
}
},
"other_name_zh": {
"type": "string",
"fields": {
"text": {
"type": "string",
"index": "not_analyzed"
}
},
"analyzer": "ik"
},
"pid": {
"type": "string"
},
"products_name_en": {
"type": "string",
"fields": {
"text": {
"type": "string",
"index": "not_analyzed"
}
}
},
"products_name_zh": {
"type": "string",
"fields": {
"text": {
"type": "string",
"index": "not_analyzed"
}
},
"analyzer": "ik"
},
"supplier_count": {
"type": "string"
}
}
}
}
}
GET / p_ext_develop / g / _mapping
GET / p_ext_develop / g / _search {
"query": {
"match_all": {}
}
}
GET / p_ext_develop / g / _search {
"query": {
"match": {
"pid": "pd18051825563"
}
}
}
GET / p_ext_develop / g / _search {
"size": 300,
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [{
"term": {
"delflag": "0"
}
},
{
"term": {
"cas_no": {
"value": "75-05-8"
}
}
}
]
}
}
}
},
"sort": [{
"supplier_count": {
"order": "desc"
}
}]
}
#
country_short country_name city_name city_short external post_code
DELETE / jerry_data
GET jerry_data / index / _mapping
#7261, 2231 3741 1425
GET /jerry_data/index/_search
{
"size": 10000,
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [{
"match": {
"country_short": "CA"
}
},
{
"bool": {
"should": [{
"prefix": {
"city_name": {
"value": "AIR"
}
}
}, {
"prefix": {
"post_code": {
"value": "AIR"
}
}
}]
}
}
]
}
}
}
},
"sort": [{ "city_name": { "order": "desc" }},
{ "post_code": { "order": "asc" }}
]
}
GET /jerry_data/index/_search
{
"size": 10000,
"query": {
"constant_score": {
"filter": {
"bool": {
"should": [{
"regexp": {
"country_short": "AIR.*"
}
}, {
"regexp": {
"city_name": "AIR.*"
}
},
{
"regexp": {
"city_short": "AIR.*"
}
}
]
}
}
}
}
}
PUT /jerry_data
{
"mappings": {
"index":{
"properties": {
"country_short": {
"type": "string",
"index": "not_analyzed"
},
"country_name": {
"index": "not_analyzed",
"type": "string"
},
"city_name": {
"type": "string",
"index": "not_analyzed"
},
"city_short": {
"type": "string",
"index": "not_analyzed"
},
"external": {
"type": "string",
"index": "not_analyzed"
},
"post_code": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
GET /hs2840/index/_search
{
"query": {
"term": {
"country_code": {
"value": "tt"
}
}
}
}
GET /hs2840/index/_search
{
"query": {
"match_all": {}
}
}
GET /cars/transactions/_search
{
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"colors": {
"terms": {
"field": "color"
}
}
}
}
# 查询统计
GET / cars / transactions / _search {
"query": {
"match": {
"make": "ford"
}
},
"aggs": {
"colors": {
"terms": {
"field": "color"
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"query": {
"match": {
"make": "ford"
}
},
"aggs": {
"single_avg_price": {
"avg": {
"field": "price"
}
},
"all": {
"global": {},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
}
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"query": {
"constant_score": {
"filter": {
"range": {
"price": {
"gte": 10000
}
}
}
}
},
"aggs": {
"single_avg_price": {
"avg": {
"field": "price"
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"query": {
"match": {
"make": "ford"
}
},
"aggs": {
"recent_sales": {
"filter": {
"range": {
"sold": {
"from": "now-1M"
}
}
},
"aggs": {
"average_price": {
"avg": {
"field": "price"
}
}
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"distinct_colors": {
"cardinality": {
"field": "color"
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"months": {
"date_histogram": {
"field": "sold",
"format": "yyyy-MM-dd",
"interval": "month",
"min_doc_count": 0,
"extended_bounds": {
"min": "2014-01-01",
"max": "2015-12-31"
}
},
"aggs": {
"distinct_colors": {
"cardinality": {
"field": "color"
}
}
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"query": {
"match": {
"make": "ford"
}
},
"post_filter": {
"term": {
"color": "green"
}
},
"aggs": {
"all_colors": {
"terms": {
"field": "color"
}
}
}
}
#
尝试尝试尝试juhe尝试尝试聚合
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"popular_colors": {
"terms": {
"field": "color",
"size": 50
},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
},
"make": {
"terms": {
"field": "make",
"size": 10
},
"aggs": {
"min_price": {
"min": {
"field": "price"
}
},
"max_price": {
"max": {
"field": "price"
}
}
}
}
}
}
}
}
#
图表图表图表
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"price": {
"histogram": {
"field": "price",
"interval": 20000
},
"aggs": {
"revenue": {
"sum": {
"field": "price"
}
}
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"sales": {
"date_histogram": {
"field": "sold",
"interval": "quarter",
"format": "yyyy-MM-dd",
"min_doc_count": 0,
"extended_bounds": {
"min": "2014-01-01",
"max": "2014-12-31"
}
},
"aggs": {
"per_make_sum": {
"terms": {
"field": "make"
},
"aggs": {
"sum_price": {
"sum": {
"field": "price"
}
}
}
},
"total_sum": {
"sum": {
"field": "price"
}
}
}
}
}
}
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"price_count": {
"terms": {
"size": 300,
"field": "month"
},
"aggs": {
"avg_qty": {
"avg": {
"field": "JSON_qty"
}
},
"country_zh": {
"terms": {
"size": 300,
"field": "country_zh"
},
"aggs": {
"max_qty": {
"min": {
"field": "JSON_qty"
}
},
"min_qty": {
"max": {
"field": "JSON_qty"
}
}
}
},
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
}
}
}
}
}
GET / hs2840 / index / _search {
"query": {
"term": {
"cas": {
"value": "29053200"
}
}
}
}
GET / hs2840 / index / _search {
"query": {
"filtered": {
"query": {
"term": {
"cas": {
"value": "29053200"
}
}
},
"filter": {
"range": {
"exportmonth": {
"gte": "2018-01",
"lte": "2018-12"
}
}
}
}
}
}
#
2
GET / hs2840 / index / _search {
"query": {
"term": {
"country_code": {
"value": "ar"
}
}
}
}
#
月份的max and min
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"max_month": {
"max": {
"field": "exportmonth",
"format": "yyyy-MM"
}
},
"min_month": {
"min": {
"field": "exportmonth",
"format": "yyyy-MM"
}
}
}
}#
接口2
GET / hs2840 / index / _search {
"size": 10000,
"query": {
"term": {
"cas": {
"value": "29171400"
}
}
},
"aggs": {
"fromdata": {
"filter": {
"and": [{
"range": {
"exportmonth": {
"from": "2018-01",
"to": "2018-12"
}
}
}]
},
"aggs": {
"summonth": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"order": {
"_key": "desc"
}
}
}
}
}
}
}
GET / hs2840 / index / _search {
"query": {
"range": {
"exportmonth": {
"from": "2018-06",
"to": "2018-07"
}
}
}
}
GET / hs2840 / index / _search {
"size": 10000,
"query": {
"bool": {
"must": [{
"term": {
"cas": {
"value": "29053200"
}
}
}],
"filter": {
"range": {
"exportmonth": {
"gte": "2018-01",
"lte": "2018-12"
}
}
}
}
}
}
GET / hs2840 / index / _search {
"size": 5000,
"query": {
"term": {
"cas": {
"value": "31054000"
}
}
},
"aggs": {
"summonth": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"extended_bounds": {
"min": "2018-01",
"max": "2018-10"
},
"order": {
"_key": "desc"
}
},
"aggs": {
"datefrom": {
"filter": {
"range": {
"exportmonth": {
"from": "2018-01",
"to": "2018-12",
"format": "yyyy-MM"
}
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
}
}
#
接口3验证
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"total_qty": {
"sum": {
"field": "JSON_qty"
}
},
"total_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
#
接口3
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"all": {
"global": {},
"aggs": {
"total_qty": {
"sum": {
"field": "JSON_qty"
}
},
"total_price": {
"sum": {
"field": "JSON_price"
}
}
}
},
"bydate": {
"filter": {
"range": {
"exportmonth": {
"gte": "2018-01",
"lte": "2018-12"
}
}
},
"aggs": {
"bycoutry": {
"terms": {
"field": "country_code",
"size": 10,
"order": {
"sum_qty": "desc"
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
}
}
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"bycountry": {
"terms": {
"field": "country_code",
"size": 300
},
"aggs": {
"bydate": {
"filter": {
"range": {
"exportmonth": {
"gte": "2018-01",
"lte": "2018-12"
}
}
},
"aggs": {
"bymnth": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"extended_bounds": {
"min": "2018-01",
"max": "2018-12"
},
"order": {
"sum_qty": "desc"
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
}
}
}
}
GET / hs2840 / index / _search {
"size": 0,
"aggs": {
"bycountry": {
"terms": {
"field": "country_code",
"size": 300,
"order": {
"sum_qyt": "desc"
}
},
"aggs": {
"sum_qyt": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
GET / hs2840 / index / _search {
"size": 10000,
"query": {
"term": {
"cas": {
"value": "29173500"
}
}
},
"aggs": {
"bymonth": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"extended_bounds": {
"min": "2019-01",
"max": "2019-06"
},
"order": {
"_key": "desc"
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}#
hscode 和时间
GET / hs2840 / index / _search {
"size": 10000,
"query": {
"term": {
"cas": "29173500"
},
"filtered": {
"filter": {
"range": {
"exportmonth": {
"gte": "2019-01",
"lte": "2019-12"
}
}
}
}
},
"aggs": {
"bymonth": {
"filter": {
"range": {
"exportmonth": {
"gte": "2019-01",
"lte": "2019-07"
}
}
},
"aggs": {
"datelist": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"extended_bounds": {
"min": "2019-01",
"max": "2019-12"
},
"order": {
"_key": "desc"
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
}
}
#
接口1
GET / hs2840 / index / _search {
"size": 0,
"query": {
"term": {
"country_code": {
"value": "ar"
}
}
},
"aggs": {
"summonth": {
"filter": {
"range": {
"exportmonth": {
"gte": "2017-01",
"lte": "2017-12"
}
}
},
"aggs": {
"data_month": {
"date_histogram": {
"field": "exportmonth",
"interval": "month",
"format": "yyyy-MM",
"min_doc_count": 0,
"extended_bounds": {
"min": "2017-01",
"max": "2017-12"
},
"order": {
"_key": "desc"
}
},
"aggs": {
"sum_qty": {
"sum": {
"field": "JSON_qty"
}
},
"sum_price": {
"sum": {
"field": "JSON_price"
}
}
}
}
}
}
}
}
#
3
# Delete the `cars`
index
DELETE / cars
# Index example docs
POST / cars / transactions / _bulk {
"index": {}
} {
"price": 10000,
"color": "red",
"make": "honda",
"sold": "2014-10-28"
} {
"index": {}
} {
"price": 20000,
"color": "red",
"make": "honda",
"sold": "2014-11-05"
} {
"index": {}
} {
"price": 30000,
"color": "green",
"make": "ford",
"sold": "2014-05-18"
} {
"index": {}
} {
"price": 15000,
"color": "blue",
"make": "toyota",
"sold": "2014-07-02"
} {
"index": {}
} {
"price": 12000,
"color": "green",
"make": "toyota",
"sold": "2014-08-19"
} {
"index": {}
} {
"price": 20000,
"color": "red",
"make": "honda",
"sold": "2014-11-05"
} {
"index": {}
} {
"price": 80000,
"color": "red",
"make": "bmw",
"sold": "2014-01-01"
} {
"index": {}
} {
"price": 25000,
"color": "blue",
"make": "ford",
"sold": "2014-02-12"
}
#
Basic aggregation - most popular car colors
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"popular_colors": {
"terms": {
"field": "color"
}
}
}
}
#
Find the average price of each car color
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"colors": {
"terms": {
"field": "color"
},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
}
}
}
}
}
#
Nest a second bucket to determine top makes per color
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"colors": {
"terms": {
"field": "color"
},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
},
"make": {
"terms": {
"field": "make"
}
}
}
}
}
}
GET / cars / transactions / _search {
"size": 0,
"query": {
"match": {
"make": "ford"
}
},
"aggs": {
"recent_sales": {
"filter": {
"range": {
"sold": {
"from": "now-60M"
}
}
},
"aggs": {
"average_price": {
"avg": {
"field": "price"
}
}
}
}
}
}
#
Finally, add some extra metrics to determine min / max price per - make, per - color
GET / cars / transactions / _search {
"size": 0,
"aggs": {
"colors": {
"terms": {
"field": "color"
},
"aggs": {
"avg_price": {
"avg": {
"field": "price"
}
},
"make": {
"terms": {
"field": "make"
},
"aggs": {
"min_price": {
"min": {
"field": "price"
}
},
"max_price": {
"max": {
"field": "price"
}
}
}
}
}
}
}
}
ES查询语句的更多相关文章
- Func<T,T>应用之Elasticsearch查询语句构造器的开发
前言 之前项目中做Elasticsearch相关开发的时候,虽然借助了第三方的组件PlainElastic.Net,但是由于当时不熟悉用法,而选择了自己拼接查询语句.例如: string queryG ...
- elasticsearch查询语句
1,安装es 安装java环境 # java --versionjava version "1.8.0_65" Java(TM) SE Runtime Environment (b ...
- SpringBoot使用注解的方式构建Elasticsearch查询语句,实现多条件的复杂查询
背景&痛点 通过ES进行查询,如果需要新增查询条件,则每次都需要进行硬编码,然后实现对应的查询功能.这样不仅开发工作量大,而且如果有多个不同的索引对象需要进行同样的查询,则需要开发多次,代码复 ...
- ES 常用的查询语句介绍
elasticsearch定义了两种查询方式: 一.索引(index).type.document 相关语句 1.列出所有索引的状态 GET /_cat/indices?v health status ...
- ES查询之刨根问底
昨天有一个需求,就是想要根据某个网关url做过滤,获取其下面所有的上下文nginx日志:如果直接"query":"https://XXX/YYY/ZZZ"发现有 ...
- ElasticSearch 论坛搜索查询语句
概述 研究论坛搜索如何综合时间和TF/IDF权重. 自定义权重计算的效率问题 数据结构 假设有一个论坛的搜索 字段包括: subject:标题 message:内容 dateline:发布时间 tag ...
- Neo4j:图数据库GraphDB(一)入门和基本查询语句
图数据库的代表:Neo4j 官网: http://neo4j.com/ 引言:为什么使用图数据库 在很多新型项目中,应用图数据库已经是势在必行的趋势了,因为图数据库可以很好的表示各种节点与关系的概念 ...
- mysql查询语句中使用星号真的慢的要死?
前言 之所以写这篇文章,是源于以前看过的关于sql语句优化的帖子,里面明确提到了在sql语句中不要使用 * 来做查询,就像下面的规则中说的 2.尽量避免使用select *,返回无用的字段会降低查询效 ...
- python 配合 es 查询数据
1.python脚本 [root@do1cloud03 ~]# cat python-es.py #!/usr/bin/env python3 from elasticsearch import El ...
随机推荐
- webview的学习总结:
1.1: Weview常见的坑 及其 内存泄漏的解决方案: WebView 1. WebView常见的坑 API 16之前版本存在远程代码执行漏洞,该漏洞源自于程序没有正确限制使用WebView.ad ...
- 初学django框架 (urls,include子路由,render模板渲染)(一)
一.urls url的使用为了告诉django哪个url调用那一段代码 如上左图所示,后面的test,test1如下图所示,为视图函数,通过前面的路径,调用后面函数的代码: 只有输入正确的url才会在 ...
- [Paper Reading] Show and Tell: A Neural Image Caption Generator
论文链接:https://arxiv.org/pdf/1411.4555.pdf 代码链接:https://github.com/karpathy/neuraltalk & https://g ...
- linux中高级信号函数sigaction和sigqueue实例
/************************************************************************* > File Name: sigquque. ...
- 获取父窗口iframe的ztree对象
问题如下:我要在jqgrid中获取ztree的选中节点对象 var iframe = parent.$("#ztree的iframeId").contents(); var ztr ...
- POJ2594 Treasure Exploration【DAG有向图可相交的最小路径覆盖】
题目链接:http://poj.org/problem?id=2594 Treasure Exploration Time Limit: 6000MS Memory Limit: 65536K T ...
- System x 服务器制作ServerGuide U盘安装Windows Server 2008 操作系统 --不格式化盘
1.全格式化 用ServerGuide10.5 刻录成U盘 下载附件中的Rufus 3.6工具,并制作引导U盘 以管理员权限打开Rufus 3.6, 选择镜像文件 2.不格式化,仅安装C盘下载老毛桃U ...
- 补码一位乘法 Booth算法 Java简易实现
本文链接:https://www.cnblogs.com/xiaohu12138/p/11955619.html. 转载,请说明出处. 本程序为简易实现补码一位乘法,若代码中存在错误,可指出,本人会不 ...
- spring入门一:框架整体简介
1:spring的基本框架主要包含六大模块:DAO.ORM.AOP.JEE.WEB.CORE DAO:(Data Access Object) 数据访问对象,是一个面向对象的数据库接口. ORM:(O ...
- 【转载】MyBatis批量插入数据(insert)
介绍:MyBatis批量插入数据,原理就是在xml文件中添加 foreach 语句,然后MyBatis自动在values后面添加多个括号: XML文件如下: <?xml version=&quo ...