package com.example.xiaoshiweixinback; import com.example.xiaoshiweixinback.service.common.EsDenseVectorService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Lazy; import java.util.List; @SpringBootTest class XiaoshiWeixinbackApplicationTests { @Autowired @Lazy private EsDenseVectorService denseVectorService; @Test void contextLoads() { } @Test public void test() throws Exception { // List list = denseVectorService.getPatentVectorSort(null, "大大的原型"); // EsPatentSearchDTO dto = new EsPatentSearchDTO(); // dto.setKey("手机 OR 产品"); // Records records = denseVectorService.getPatentList(dto); // List list = JSON.parseArray(records.getData().toString(), EsPictureVectorVo.class); // System.out.println(list); // String s = "a , b , c , d"; // boolean regExpReplace = RegexUtil.isRegExpReplace(s); // System.out.println(regExpReplace); // String all = s.replaceAll("[,。、;,./;]", " OR "); // System.out.println(all); // String s = "a OR b OR c OR d"; // boolean regExpReplace = RegexUtil.isRegExpReplace(s); // System.out.println(regExpReplace); // String sa = s.replaceAll("[,。、;,./;\\s]", " OR "); // System.out.println(sa); // StpUtil.login("2"); // Object id = StpUtil.getLoginId(); // String tokenValue = StpUtil.getTokenValue(); // String value = StpUtil.getTokenValueByLoginId(2); // System.out.println(tokenValue); // System.out.println(value); } }