123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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<EsPictureVectorVo> list = denseVectorService.getPatentVectorSort(null, "大大的原型");
- // EsPatentSearchDTO dto = new EsPatentSearchDTO();
- // dto.setKey("手机 OR 产品");
- // Records records = denseVectorService.getPatentList(dto);
- // List<EsPictureVectorVo> 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);
- }
- }
|