Closed amar-shinde closed 6 months ago
Hello,
The issue is probably due to the spring context's configuration.
My opinion is that the GraphqlClientUtils.class
is missing in the packages list that is scanned by Spring.
If not, can you show the way your Spring context is configured ?
Etienne
Hello,
I'm using graphql-maven-plugin for client code generation, i.e. only the domain Objects those are used in queries & response from a GraphQL server. I've saved the queries and graphql schema locally which I'm reading to generate the client code.
Following is mostly what my pom.xml looks like. Mentioned only necessary part here for this issue.
` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
`
The code compiles well, but the Springboot Application fails to start with following error:
Field springContextBean in com.testproduct.graphql.client.spring_autoconfiguration.GraphQLPluginAutoConfiguration required a bean of type 'com.graphql_java_generator.client.SpringContextBean' that could not be found. The injection point has the following annotations:
Is it something that I'm missing in my project dependencies? Or does it need to be addressed in some way?
Your help is much appreciated.
Thanks & Warm Regards, Amar