摘要:
为了删除无用或者时间过长的日志,需要根据日志的名称获取日志信息。而日志的名称往往和日期相关联,如log-20220926,类似以日期为后缀,如何判断日志与当前日期的关系,使用到Calandar; n天前: Date today = new Date(); Calendar c = Calendar. 阅读全文
摘要:
NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{9L7K2EanQGSxD5aAmbzAIw}{localhost}{127.0.0.1:9200}]] 这里显示无可用节点异常 阅读全文
摘要:
接上一篇文章,在使用TransportClient后,直接注入TransportClient,需要使用的方法可以使用了,但是运行后报错了: A component required a bean of type 'org.elasticsearch.client.transport.Transpor 阅读全文