考虑到国内大部分场景对接的是Mybatis或者Mybatis Plus生态,而不是JPA,同时Graphql版本也进一步迭代,故计划使用Mybatis Plus对接Graphql
介绍上一篇介绍到用第三方库集成GraphQL,目前spring-graphql项目已经出到1.0.0-M3版本,属于内部预览版,此处尝鲜验证GraphQL实践1——集成JPA与MySQL - F嘉阳 博客 firstName lastName lastUpdate }}query actorList { actorList{ actorId }}启动测试Spring-Graphql 样例源码地址FJiayang/graphql-demo at spring-graphql (github.com)
「参考资料」 1.Spring GraphQL: https://github.com/spring-projects/spring-graphql 2.Spring GraphQL: https:// github.com/spring-projects/spring-graphql 3.GraphQL Java Spring: https://github.com/graphql-java/graphql-java-spring
参考资料 [1] Spring GraphQL: https://github.com/spring-projects/spring-graphql [2] Spring GraphQL: https: //github.com/spring-projects/spring-graphql [3] GraphQL Java Spring: https://github.com/graphql-java/
参考资料 [1] Spring GraphQL: https://github.com/spring-projects/spring-graphql [2] Spring GraphQL: https: //github.com/spring-projects/spring-graphql [3] GraphQL Java Spring: https://github.com/graphql-java/
graphql-java https://github.com/graphql-java/graphql-java-spring https://github.com/spring-projects/spring-graphql
Spring Boot + GraphQL 在Spring Boot中整合GraphQL,您可以使用第三方库(例如graphql-java和spring-graphql)。
/集成方案选择GraphQL经过近几年的发展,SpringBoot官方、第三方都提供了starterSpringBoot官方提供的starter:https://spring.io/projects/spring-graphql