Skip to content

Commit

Permalink
@ConditionalOnClass ServerRequest for ReactiveQueryExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbakker committed Feb 1, 2024
1 parent cea8ffd commit fe8283f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import org.springframework.web.method.annotation.RequestHeaderMethodArgumentReso
import org.springframework.web.method.annotation.RequestParamMapMethodArgumentResolver
import org.springframework.web.method.annotation.RequestParamMethodArgumentResolver
import org.springframework.web.reactive.BindingContext
import org.springframework.web.reactive.function.server.ServerRequest
import org.springframework.web.reactive.result.method.annotation.CookieValueMethodArgumentResolver
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
import org.springframework.web.servlet.mvc.method.annotation.ServletCookieValueMethodArgumentResolver
Expand Down Expand Up @@ -190,7 +191,7 @@ open class DgsSpringGraphQLAutoConfiguration {
}

@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(Publisher::class)
@ConditionalOnClass(Publisher::class, ServerRequest::class)
open class ReactiveConfiguration {
@Bean
open fun springGraphQLDgsReactiveQueryExecutor(
Expand Down

0 comments on commit fe8283f

Please sign in to comment.