Skip to content

8.0.0 upgrade to 8.1.0 breaks Spring WebMVC Compatibility in Fastjson Implementation #2047

Closed
@TiKevin83

Description

@TiKevin83

Library Version
works on 8.0.0, broken on 8.1.0

Describe the bug
Before the fastjson upgrade commit (v8.0.0), we were successfully using graphql-kotlin-spring-server in a Spring WebMVC project. After v8.1.0, the added GraphQLServerCodecConfiguration.kt now has an @EnableWebFlux annotation, which conflicts with projects using WebMVC. We use WebMVC in a modern project due to maturity issues with some of the nuances of reactive streams vs traditional threads.

To Reproduce

Build any graphql spring server with an @EnableWebMvcannotation. Will throw error Caused by: java.lang.IllegalStateException: The Java/XML config for Spring MVC and Spring WebFlux cannot both be enabled, e.g. via @EnableWebMvc and @EnableWebFlux, in the same application.

Expected behavior
Spring WebMVC can be used alongside graphql-kotlin-spring-server

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions