Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.1k stars 297 forks source link

The webflux build problem, No exclude autoconfig then report other error #1077

Closed ANUGLYPLUGIN closed 2 months ago

ANUGLYPLUGIN commented 2 years ago

Don't know whether it is a bug or not

Code is very simple,

@Component
@DgsComponent
public class TestController {

    @DgsQuery
    public Integer test(@InputArgument Integer input) {
        return input + 10213123;
    }

}

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

reactor.netty.transport.ServerTransport$DisposableBind.<init>(ServerTransport.java:494)

The following method did not exist:

'reactor.util.context.ContextView reactor.core.publisher.MonoSink.contextView()'

Action:

Correct the classpath of your application so that it contains compatible versions of the classes reactor.netty.transport.ServerTransport$DisposableBind and reactor.core.publisher.MonoSink

blling commented 2 years ago

So, what`s the fix?

paulbakker commented 2 months ago

Closing as this was on an old version, and the starters have changed significantly.