添加[milvus plus] banner

This commit is contained in:
code2tan 2024-06-04 13:56:14 +08:00
parent ed4ca72eb1
commit ead54e6e2f

View File

@ -1,7 +1,7 @@
package org.dromara.milvus.plus.service; package org.dromara.milvus.plus.service;
import org.dromara.milvus.plus.entity.MilvusProperties;
import io.milvus.v2.client.MilvusClientV2; import io.milvus.v2.client.MilvusClientV2;
import org.dromara.milvus.plus.entity.MilvusProperties;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -35,7 +35,17 @@ public class MilvusInit extends AbstractMilvusClientBuilder {
@Bean @Bean
public MilvusClientV2 milvusClientV2() { public MilvusClientV2 milvusClientV2() {
printBanner();
return client; return client;
} }
public void printBanner() {
String banner =
" __ __ _ _ ____ _ \n" +
" | \\/ (_) |_ ___ _ ___ | _ \\| |_ _ ___ \n" +
" | |\\/| | | \\ \\ / / | | / __| | |_) | | | | / __|\n" +
" | | | | | |\\ V /| |_| \\__ \\ | __/| | |_| \\__ \\\n" +
" |_| |_|_|_| \\_/ \\__,_|___/ |_| |_|\\__,_|___/\n\n";
System.out.println(banner);
}
} }