Spring WebFlux: Only one connection receive subscriber allowed

后端 未结 3 1241
名媛妹妹
名媛妹妹 2021-01-18 00:42

I am writing a simple app with Spring 5 Webflux and Kotlin. I am trying to implement PUT endpoint in a following way:

PUT(\"/confs/{id}\", {
    val id = it.         


        
3条回答
  •  爱一瞬间的悲伤
    2021-01-18 01:12

    I had a similar issue. The fix was to specify this dependency:

    org.springframework:spring-webflux:5.1.4.RELEASE

    As I used spring-boot it deploys the previous version of it. Unfortunately, the link to this issue is not existing now.

    So now my gradle looks like this:

    compile('org.springframework.boot:spring-boot-starter-data-mongodb-reactive')
    compile('org.springframework.boot:spring-boot-starter-webflux')
    // Next 2 dependencies are temporally here until the one above does not resolves next to at least 5.1.4 - where 
    // webflux issue is resolved:
    // https://github.com/rstoyanchev/spr-issue-migration-test-2/issues/17323
    compile('org.springframework:spring-webflux:5.1.4.RELEASE')
    compile('org.springframework:spring-web:5.1.4.RELEASE')
    

提交回复
热议问题