新建索引: PUT logstash-redis-log-2017.12

PUT logstash-redis-log-2017.12/_mapping/redis-log
 {       "properties" : {
          "@timestamp" : {
            "type" "date"
          },
          "@version" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "Query" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "Rt" : {
            "type" "long",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "dest_ip" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "dest_port" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "kafka" : {
            "properties" : {
              "consumer_group" : {
                "type" "text",
                "fields" : {
                  "keyword" : {
                    "type" "keyword",
                    "ignore_above" : 256
                  }
                }
              },
              "offset" : {
                "type" "long"
              },
              "partition" : {
                "type" "long"
              },
              "topic" : {
                "type" "text",
                "fields" : {
                  "keyword" : {
                    "type" "keyword",
                    "ignore_above" : 256
                  }
                }
              }
            }
          },
          "message" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "request_len" : {
            "type" "long",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "request_ts" : {
            "type" "long",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "response_len" : {
            "type" "long",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          },
          "souce_ip" : {
            "type" "text",
            "fields" : {
              "keyword" : {
                "type" "keyword",
                "ignore_above" : 256
              }
            }
          }
        }
}

新建索引: PUT logstash-iis-log-2017.12

PUT logstash-iis-log-2017.12/_mapping/iis-log
{
        "properties": {
          "@timestamp": {
            "type""date"
          },
          "@version": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "c-ip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-bytes": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-host": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-method": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-uri-query": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-uri-stem": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "kafka": {
            "properties": {
              "consumer_group": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "offset": {
                "type""long"
              },
              "partition": {
                "type""long"
              },
              "topic": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "message": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "s-ip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "s-port": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-bytes": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-status": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-substatus": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-win32-status": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "tags": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "time-taken": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "timestamp": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "type": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          }
        }
}

新建template

 Collapse source
PUT _template/logstash-iislog
{
  "template" "logstash-iislog-*",
  "settings" : {
    "index.refresh_interval" "5s"
  },
  "mappings" : {
    "iislog" : {
       "dynamic_templates" : [ {
         "string_fields" : {
           "match" "*",
           "match_mapping_type" "string",
           "mapping" : {
             "type" "string""index" "not_analyzed""omit_norms" true
           }
         }
       } ],
        "properties": {
          "@timestamp": {
            "type""date"
          },
          "@version": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "c-ip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-bytes": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-host": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-method": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-uri-query": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "cs-uri-stem": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "kafka": {
            "properties": {
              "consumer_group": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "offset": {
                "type""long"
              },
              "partition": {
                "type""long"
              },
              "topic": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "message": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "s-ip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "s-port": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-bytes": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-status": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-substatus": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "sc-win32-status": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "tags": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "time-taken": {
            "type""long",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "timestamp": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "type": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          }
         }
       }
    }
  }

iis字段全选:

 Collapse source
PUT _template/logstash-iis-ex
{
  "template" "logstash-iis-ex-*",
  "settings" : {
    "index.refresh_interval" "5s"
  },
  "mappings" : {
    "iis-ex" : {
       "dynamic_templates" : [ {
         "string_fields" : {
           "match" "*",
           "match_mapping_type" "string",
           "mapping" : {
             "type" "string""index" "not_analyzed""omit_norms" true
           }
         }
       } ],
    "properties": {"cs-method": {"type""text",
       "fields": {"keyword": {"ignore_above": 256,
       "type""keyword"
 
}
 
}
 
},
"cs-uri-stem": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs-uri-query": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"sc-substatus": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"s-computername": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs-username": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"type": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"sc-win32-status": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs-host": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs-version": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"@version": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"timestamp": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"s-sitename": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs-bytes": {"type""long",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"message": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"tags": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"time-taken": {"type""long",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"cs": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"@timestamp": {"type""date"
 
},
"s": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"s-ip": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"kafka": {"properties": {"consumer_group": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"partition": {"type""long"
 
},
"offset": {"type""long"
 
},
"topic": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
}
 
}
 
},
"s-port": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"sc-bytes": {"type""long",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
},
"c-ip": {"type""text",
"fields": {"keyword": {"ignore_above": 256,
"type""keyword"
 
}
 
}
 
}
 
}
 
}
 
}
  }

elasticsearch-template.json

 Collapse source
{
  "template" "logstash-iis-log-*",
  "settings" : {
    "index.refresh_interval" "5s"
  },
  "mappings" : {
    "iis-log" : {
       "dynamic_templates" : [ {
         "string_fields" : {
           "match" "*",
           "match_mapping_type" "string",
           "mapping" : {
             "type" "string""index" "not_analyzed""omit_norms" true
           }
         }
       } ],
"properties": {
"cs-method": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"s-sitename": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs-uri-stem": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs-bytes": {
"type""long",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs-uri-query": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"sc-substatus": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"s-computername": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs-username": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"message": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"type": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"time-taken": {
"type""long",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"sc-win32-status": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"@timestamp": {
"type""date"
},
"cs-host": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"cs-version": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"s-ip": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"kafka": {
"properties": {
"consumer_group": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"partition": {
"type""long"
},
"offset": {
"type""long"
},
"topic": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
}
}
},
"s-port": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"sc-status": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"@version": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"sc-bytes": {
"type""long",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"c-ip": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
},
"timestamp": {
"type""text",
"fields": {
"keyword": {
"ignore_above": 256,
"type""keyword"
}
}
}
}
}
}
}
PUT _template/f5-request
 Collapse source
PUT _template/f5-request
{
  "template" "f5-request-*",
  "settings" : {
    "index.refresh_interval" "5s"
  },
    "mappings": {
      "f5-request": {
       "dynamic_templates" : [ {
         "string_fields" : {
           "match" "*",
           "match_mapping_type" "string",
           "mapping" : {
             "type" "string""index" "not_analyzed""omit_norms" true
           }
         }
       } ],
        "properties": {
          "@timestamp": {
            "type""date"
          },
          "@version": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "agent": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "bytes": {
            "type""long"
          },
          "clientip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "geoip": {
            "properties": {
             
              "city_name": {
                "type""text",
                 
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "continent_code": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "country_code2": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "country_code3": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "country_name": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "ip": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "latitude": {
                "type""float"
              },
              "location": {
                "type""geo_point",
                "ignore_malformed""true"
              },
              "longitude": {
                "type""float"
              },
              "region_code": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "region_name": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "timezone": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "httpmethod": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "httpuri": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "httpversion": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "kafka": {
            "properties": {
              "consumer_group": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              },
              "offset": {
                "type""long"
              },
              "partition": {
                "type""long"
              },
              "topic": {
                "type""text",
                "fields": {
                  "keyword": {
                    "type""keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "message": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "referer": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "response": {
            "type""long"
          },
          "response_ms": {
            "type""long"
          },
          "server": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "server_port": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "snat": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "tags": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "timestamp": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "type": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "user": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "virtual_ip": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "virtual_name": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "virtual_pool_name": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          },
          "virtual_port": {
            "type""text",
            "fields": {
              "keyword": {
                "type""keyword",
                "ignore_above": 256
              }
            }
          }
        }
      }
    }
  }

新建mapping的更多相关文章

  1. Zabbix实战-简易教程--监控OSPF

    一.需求背景 网络工程师需要对OSPF进行监控,需求如下: 1.状态展示 OSPF区域状态 OSPF接口状态 OSPF邻居状态 2.问题报警 触发器设置: a.OSPF区域状态  b.OSPF接口状态 ...

  2. 手把手教你搭建SSH框架(Eclipse版)

    原文来自公众号[C you again],若需下载完整源码,请在公众号后台回复"ssh". 本期文章详细讲解了SSH(Spring+SpringMVC+Hibernate)框架的搭 ...

  3. Atitit s2018.2 s2 doc list on home ntpc.docx  \Atiitt uke制度体系 法律 法规 规章 条例 国王诏书.docx \Atiitt 手写文字识别 讯飞科大 语音云.docx \Atitit 代码托管与虚拟主机.docx \Atitit 企业文化 每日心灵 鸡汤 值班 发布.docx \Atitit 几大研发体系对比 Stage-Gat

    Atitit s2018.2 s2 doc list on home ntpc.docx \Atiitt uke制度体系  法律 法规 规章 条例 国王诏书.docx \Atiitt 手写文字识别   ...

  4. 新建SpringBoot项目运行页面报错Whitelabel Error Page This application has no explicit mapping for /error, so yo

    新建SpringBoot项目运行页面报错Whitelabel Error Page This application has no explicit mapping for /error, so yo ...

  5. Intellij Idea 15 下新建 Hibernate 项目以及如何添加配置

    1.说明:Idea 下,项目对应于 Eclipse 下的 workspace,Module 对应于 Eclipse 下的项目.Idea 下,新添加的项目既可以单独作为一个 Project,也可以作为一 ...

  6. 使用MyBatis Generator自动创建代码(dao,mapping,poji)

    连接的数据库为SQL server2008,所以需要的文件为sqljdbc4.jar 使用的lib库有: 在lib库目录下新建一个src文件夹用来存放生成的文件,然后新建generatorConfig ...

  7. [NHibernate]O/R Mapping基础

    系列文章 [Nhibernate]体系结构 [NHibernate]ISessionFactory配置 [NHibernate]持久化类(Persistent Classes) 引言 对象和关系数据库 ...

  8. NHibernate系列文章二十八:NHibernate Mapping之Auto Mapping(附程序下载)

    摘要 上一篇文章介绍了Fluent NHibernate基础知识.但是,Fluent NHibernate提供了一种更方便的Mapping方法称为Auto Mapping.只需在代码中定义一些Conv ...

  9. NHibernate系列文章二十七:NHibernate Mapping之Fluent Mapping基础(附程序下载)

    摘要 从这一节起,介绍NHibernate Mapping的内容.前面文章都是使用的NHibernate XML Mapping.NHibernate XML Mapping是NHibernate最早 ...

随机推荐

  1. Tools: java安装指南

    参考: https://www.cnblogs.com/smyhvae/p/3788534.htmljava安装 (1)新建->变量名"JAVA_HOME",变量值" ...

  2. Jenkins 搭建 .NET Core 持续集成环境

    关于c#的.Net FrameWork 的集成环境以及MsBuild的配置可以看     jenkins搭建.NET FrameWork持续集成环境 这篇文章     关于.NET Core 这个项目 ...

  3. HttpUrlConnection类基本使用

    这个类用来模拟浏览器向服务器发送请求和接收响应 注意: HttpUrlConnection对象简称huc对象 1)获取huc对象向url构造中传递url字符串,并调用openconnection方法即 ...

  4. wordpress翻译插件gtranslate

    https://www.gdstautoparts.com/

  5. Ubuntu安装msf

    环境 root运行 ubuntu18.04 腾讯云服务器 控制面板上面所有的端口全部放行 本机自带防火墙已拆 拆墙是为了能msf接受到会话 安装 curl https://raw.githubuser ...

  6. NX二次开发-测量投影距离

    NXOPEN方法,直接录制测量投影距离命令 NX9+VS2012 #include <NXOpen/Annotations.hxx> #include <NXOpen/Assembl ...

  7. 修改ActiveProcessLinks链表隐藏进程

    在Windows内核中有一个活动进程链表AcvtivePeorecssList.它是一个双向链表,保存着系统中所有进程的EPROCESS结构.特别地,进程的EPROCESS结构包含一个具有指针成员FL ...

  8. Spring随笔-核心知识DI与AOP

    DI 依赖注入,使得相互依赖的组件松耦合. AOP 面向切面编程,使各种功能分离出来,形成可重用的组件.

  9. delphi基础篇之单元文件

    Delphi单元文件 unit MainFrm; {库单元文件头} interface        {接口部分由Interface开始implementation结束.声明引用的单元,常量,数据类型 ...

  10. sizeof,真正终结版GCC与VC

    在VC6.0中sizeof结果是16.我电脑上装了个linux虚拟机,在虚拟机上GCC中结果是12, 恩不同编译器默认对齐数值不一样. VC 默认为 8 gcc 默认为 4 有个编译参数控制对齐. # ...