/** 销毁 */ @Override public void destroy() throws Exception { super.destroy(); if (esClient != null) { esClient.close(); } if (node != null) { node.close(); } }
/** @see org.springframework.beans.factory.config.AbstractFactoryBean#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); }