| 123456789101112131415161718192021222324 |
- package com.seeckg.knowledgegraph_backend;
- import javax.annotation.Resource;
- import org.junit.jupiter.api.Test;
- import org.springframework.boot.test.context.SpringBootTest;
- import com.seeckg.knowledgegraph_backend.dao.KnowledgeDao;
- import com.seeckg.knowledgegraph_backend.pojo.Knowledge;
- /**
- * @author chenjiawei09 <chenjiawei09@kuaishou.com>
- * Created on 2023-05-19
- */
- @SpringBootTest
- public class Neo4jTest {
- @Resource
- KnowledgeDao knowledgeDao;
- @Test
- void testInsert() {
- knowledgeDao.save(Knowledge.builder().creatorId(111L).name("name2").context("context").bindClassId(0L).build());
- }
- }
|