appender.console.type = Console
appender.console.name = Console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%t] %-5p $c -%m%n
rootLogger.level = info
rootLogger.appenderRef.console.ref = console
appender.console.name = Console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%t] %-5p $c -%m%n
rootLogger.level = info
rootLogger.appenderRef.console.ref = console
2017-09-13
{
"settings":{"number_of_shards": 3,"number_of_replicas": 1},
"mappings":{
"novel":{
"properties":{
"word_count":{"type":"integer"},
"author":{"type":"keyword"},
"title":{"type":"text"},
"publish_date":{"type":"date","format":"yyyy-MM-dd HH:mm:ss || yyyy-MM-dd || epoch_millis"}
}}}
}
"settings":{"number_of_shards": 3,"number_of_replicas": 1},
"mappings":{
"novel":{
"properties":{
"word_count":{"type":"integer"},
"author":{"type":"keyword"},
"title":{"type":"text"},
"publish_date":{"type":"date","format":"yyyy-MM-dd HH:mm:ss || yyyy-MM-dd || epoch_millis"}
}}}
}
{
"settings":{"number_of_shards": 3,"number_of_replicas": 1},
"mappings":{"man":{"properties":{"name":{"type":"text"},"country":{"type":"keyword"},
"age":{"type":"integer"},"date":{"type":"date","format":"yyyy-MM-dd HH:mm:ss || yyyy-MM-dd || epoch_millis"}
}
},
"woman":{
}
}
}
"settings":{"number_of_shards": 3,"number_of_replicas": 1},
"mappings":{"man":{"properties":{"name":{"type":"text"},"country":{"type":"keyword"},
"age":{"type":"integer"},"date":{"type":"date","format":"yyyy-MM-dd HH:mm:ss || yyyy-MM-dd || epoch_millis"}
}
},
"woman":{
}
}
}
已采纳回答 / 瓦力老师
这位同学问的问题很好,这也是使用Head插件的一个小技巧,Head插件是支持多语言的,我们可以在访问的url后面跟上【 lang=语言】 参数以指定显示的语种,目前支持en, fr, pt, zh, tr, ja等,其中zh就是中文的意思,比如我的head插件地址是http://localhost:9100/,我去访问http://localhost:9100/?lang=zh即可指定为中文显示了,希望我的课程能够帮到你,助你成长^_^
2017-09-13