Spring boot web starter version #558
-
|
I need to use DGS library with Springboot web 2.1.x versions but it does not work and gives below error: Parameter 0 of constructor in com.netflix.graphql.dgs.webmvc.autoconfigure.DgsWebMvcConfigurationProperties required a bean of type 'java.lang.String' that could not be found. However, when I use the 2.3.9.RELEASE it works fine. Can anyone confirm, if DGS can be used with Springboot web 2.1.x. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I think Spring Boot 2.4+ is ok. Not sure why you are stick on the old versions. |
Beta Was this translation helpful? Give feedback.
-
|
@rmishra3261 We currently test with I would highly recommend keeping your Spring versions updated, but I understand that's not always in your control. You do mention that those older applications are just getting data from a GraphQL endpoint. Are you only using the client? In that case, make sure to just use the |
Beta Was this translation helpful? Give feedback.
@rmishra3261 We currently test with
2.3.9and above.The reason we don't test with older versions is that it's simply too much work to maintain. The supported versions range from what we actively use at Netflix.
I would highly recommend keeping your Spring versions updated, but I understand that's not always in your control.
You do mention that those older applications are just getting data from a GraphQL endpoint. Are you only using the client? In that case, make sure to just use the
graphql-dgs-clientdependency, and not the whole starter. That way you might work around the problem.