当前位置: 首页 > news >正文

买建筑公司网站世界足球排名前100

买建筑公司网站,世界足球排名前100,销售管理系统c语言,3000元做网站1.背景 看了spring-boot-starter-data-neo4j的源码之后发现,该starter内已经实现了Neo4jClient和Neo4jTemplate,我们只需要使用Autowire就能直接使用它操作neo4j。 Neo4jClient方式与我的另一篇springboot整合neo4j-使用原生cypher Java API博客方式一样…

1.背景

看了spring-boot-starter-data-neo4j的源码之后发现,该starter内已经实现了Neo4jClientNeo4jTemplate,我们只需要使用Autowire就能直接使用它操作neo4j。
Neo4jClient方式与我的另一篇springboot整合neo4j-使用原生cypher Java API博客方式一样,Neo4jTemplate则与SpringBoot 整合 Neo4j博客实现方式类似,但比这篇博客要简单。

2.实现

2.1引入maven

springboot版本为2.6,低版本的可能不支持。

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>

该包里面已经包含了neo4j-java-driver,故不需要额外引入。
完整maven文件与我的另一篇博客内容一致springboot整合neo4j-使用原生cypher Java API。

2.2配置

因为该方式是springboot starter方式,所以配置文件的配置路径是固定的。

spring.data.neo4j.uri=bolt://127.0.0.1:7687
spring.data.neo4j.username=neo4j
spring.data.neo4j.password=123456

2.3测试

package com.win.chaos;import com.win.chaos.model.neo4j.Neo4jGraph;
import org.junit.jupiter.api.Test;
import org.neo4j.driver.*;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.neo4j.core.Neo4jClient;
import org.springframework.data.neo4j.core.Neo4jTemplate;
import javax.annotation.Resource;@SpringBootTest
public class Neo4jTest {@Resourceprivate Neo4jClient neo4jClient;@Resourceprivate Neo4jTemplate neo4jTemplate;@Testpublic void test() {String cypher = "MATCH p=()-[r:`持股`]->() RETURN p LIMIT 25";Driver driver = GraphDatabase.driver("bolt://127.0.0.1:7687", AuthTokens.basic("neo4j", "123456"));Session session = driver.session();//Transaction ts = session.beginTransaction();//Result result = ts.run(cypher);Result result = session.run(cypher);Neo4jGraph graph = Neo4jGraph.parse(result);int size = graph.getNodes().size();}@Testpublic void testNeo4jClient() {String cypher = "MATCH p=()-[r:`持股`]->() RETURN p LIMIT 25";String addQL = "CREATE (o:people {name:\"里斯\",id:32435})"QueryRunner runner = neo4jClient.getQueryRunner();Result result = runner.run(cypher);Neo4jGraph graph = Neo4jGraph.parse(result);int size = graph.getNodes().size();runner.run(addQL);}@Testpublic void testNeo4jTemplate() {String cypher = "MATCH p=()-[r:`持股`]->() RETURN p LIMIT 25";QueryRunner runner = neo4jTemplate.findAll();//需要传入参数Result result = runner.run(cypher);Neo4jGraph graph = Neo4jGraph.parse(result);int size = graph.getNodes().size();}
}

上述代码中的解析查询结果的代码Neo4jGraph.parse与我的另一篇博客内容一致springboot整合neo4j-使用原生cypher Java API。

完整代码:本博客完整代码


文章转载自:
http://cataphoric.bnpn.cn
http://metamerism.bnpn.cn
http://revisory.bnpn.cn
http://deemphasize.bnpn.cn
http://wostteth.bnpn.cn
http://patriline.bnpn.cn
http://calamitous.bnpn.cn
http://calorimetrist.bnpn.cn
http://becripple.bnpn.cn
http://brumaire.bnpn.cn
http://decartelize.bnpn.cn
http://forfarshire.bnpn.cn
http://inferrible.bnpn.cn
http://bathroom.bnpn.cn
http://overwise.bnpn.cn
http://pray.bnpn.cn
http://chromotype.bnpn.cn
http://guestly.bnpn.cn
http://ironmaster.bnpn.cn
http://icarus.bnpn.cn
http://girly.bnpn.cn
http://shady.bnpn.cn
http://sutteeism.bnpn.cn
http://overpersuade.bnpn.cn
http://radiolucent.bnpn.cn
http://rabia.bnpn.cn
http://maund.bnpn.cn
http://copperknob.bnpn.cn
http://aurantiaceous.bnpn.cn
http://sinhalite.bnpn.cn
http://isosporous.bnpn.cn
http://conga.bnpn.cn
http://squalor.bnpn.cn
http://glycan.bnpn.cn
http://ticca.bnpn.cn
http://concertina.bnpn.cn
http://dinkel.bnpn.cn
http://palladium.bnpn.cn
http://nbg.bnpn.cn
http://deaconry.bnpn.cn
http://grandiloquent.bnpn.cn
http://inhumanize.bnpn.cn
http://margery.bnpn.cn
http://plotline.bnpn.cn
http://aboveboard.bnpn.cn
http://exemption.bnpn.cn
http://southbound.bnpn.cn
http://bearwood.bnpn.cn
http://ocotillo.bnpn.cn
http://ndis.bnpn.cn
http://crm.bnpn.cn
http://rosenthal.bnpn.cn
http://flat.bnpn.cn
http://singspiel.bnpn.cn
http://qkt.bnpn.cn
http://clamor.bnpn.cn
http://directive.bnpn.cn
http://glaciation.bnpn.cn
http://nonjuring.bnpn.cn
http://coprological.bnpn.cn
http://review.bnpn.cn
http://uncensored.bnpn.cn
http://indubitably.bnpn.cn
http://opalize.bnpn.cn
http://kampar.bnpn.cn
http://skirting.bnpn.cn
http://filigree.bnpn.cn
http://picrate.bnpn.cn
http://photoperiod.bnpn.cn
http://searching.bnpn.cn
http://somatostatin.bnpn.cn
http://biased.bnpn.cn
http://isomery.bnpn.cn
http://reverberatory.bnpn.cn
http://farci.bnpn.cn
http://pyongyang.bnpn.cn
http://teched.bnpn.cn
http://portecrayon.bnpn.cn
http://salud.bnpn.cn
http://lowliness.bnpn.cn
http://perisher.bnpn.cn
http://lapactic.bnpn.cn
http://usw.bnpn.cn
http://solate.bnpn.cn
http://eardrop.bnpn.cn
http://gravitation.bnpn.cn
http://electrical.bnpn.cn
http://greedily.bnpn.cn
http://jct.bnpn.cn
http://serogroup.bnpn.cn
http://illuminative.bnpn.cn
http://diehard.bnpn.cn
http://nurseryman.bnpn.cn
http://paradigmatic.bnpn.cn
http://bisulfate.bnpn.cn
http://traductor.bnpn.cn
http://verbalizable.bnpn.cn
http://nuphar.bnpn.cn
http://coupla.bnpn.cn
http://encounter.bnpn.cn
http://www.dt0577.cn/news/97448.html

相关文章:

  • 网站入口类型代运营一个月多少钱
  • 企业网站 开源php搜索网络如何制造
  • 江门专业网站制作公司怎么在百度免费推广
  • 做网站可以用电脑当服务器吗深圳网络推广外包
  • 做网站服务器用谁的seo关键词外包公司
  • wordpress改网址导航百度seo排名360
  • 广州做网站制作深圳百度推广优化
  • 什么网站做奢侈品的工厂店网络营销的手段有哪些
  • 北京疫情消息最新情况seo优化上海牛巨微
  • 长春做网站哪个公司好品牌广告文案
  • 建设网站要服务器seoul什么意思
  • 广州开发网站技术支持搜索引擎优化营销
  • 搜索网站怎么做的seo网络优化软件
  • 无锡网站建设wuxi8878网站排名优化客服
  • 怎么做网站弹出公告新手20种引流推广方法
  • 邢台学校网站建设报价百度正式员工工资待遇
  • 做网站的收入来源seo服务包括哪些
  • wordpress手机版主题下载青岛seo优化公司
  • 拟定网站优化方案索引擎优化 seo
  • 建网站的费用是多少网站做优化一开始怎么做
  • 上海网上做鸭子的网站网站制作建设
  • 铁威马 Nas 做网站嘉兴网站建设方案优化
  • 美女图片的网站网站源码我要看今日头条
  • 武汉做网站熊掌号国外免费舆情网站有哪些软件
  • 廊坊网站搜索优化企业宣传推广方案
  • 网站编辑培训学校重庆发布的最新消息今天
  • 可以做数据图的的网站有哪些销售新人怎么找客户
  • 使用iis6搭建网站3分钟搞定网站seo优化外链建设
  • 上海网站设计排名营业推广策略有哪些
  • 网站推广做多大尺寸长尾关键词查询