一种GraphQL Java备忘单帮助您了解GraphQL Java世界中的什么。 如果您执行以下操作,可能会发现它很有用:
想学习GraphQL Java对所有Java GraphQL库感到困惑想在项目中尝试GraphQL Java,但不确定如何启动
Gradle or Maven?
Gradle and Maven are the most popular build automation tools.
Which one you should choose? I can not provide you an answer to that question as this decision is to a large extent up to you and it depends on variables like your project's size or how much customization it needs. The tools like Spring and the constantly increasing amount of integration make it's quite a personal decision. As both approaches have their strengths and weaknesses, I hope this short summary can help you choose the right one for your project.
综上所述,Gradle比Maven强大得多,但是在许多情况下,您不需要使用其花哨的功能。 如果您从事的是小型项目,则应考虑使用Maven,如果它是大型企业应用程序,那么Gradle似乎是正确的选择。 最后,这是您的个人选择。
Libraries
有几个与GraphQL Java相关的库。 唯一严格要求的库是graphql-java这是GraphQL实现本身,但是还有许多其他有用的地方:
graphql-java: The alpha and omega of any project, the GraphQL Java implementation itself.
graphql-java-tools: The library that allows you to use the GraphQL schema language to build your GraphQL schema. It's inspired by Apollo's graphql-tools, it parses the given GraphQL schema and allows you to bring your own object to fill in the implementations.
graphql-spring-boot: A lib that contains various Spring Boot starters to enable GraphQL related services and features.
graphql-java-servlet: The implementation of GraphQL Java Servlet including support for popular libraries like Relay.js, Apollo, and OSGi out of the box; wraps the Java implementation of GraphQL provided by GraphQL Java.
graphql-java-annotations: The library that offers an annotations-based syntax for GraphQL schema definition.
DEV.TO GraphQL Java articles
- First impressions with GraphQL in Java by @committedsw
- Notes from experimenting with GraphQL and Kotlin by @baens
- Getting Started with GraphQL Java by @tomekponiat
- How to Build GraphQL Services in Java with Spring Boot by @sambenskin
Tutorials and other resources
- Gradel Tutorials and Guides
- Maven in 5 Minutes
- How to get your GraphQL Java server up and running in no time
- graphql-java Tutorial
- Migratiing Builds From Apache Maven
Video tutorials:
带有GraphQL查询示例的Spring Boot-技术入门
使用Kotlin和graphql-java构建GraphQL服务器-MichaelHunger
开发和维护Java GraphQL后端-Bojan Tomic