Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebFlux @MVC Controllers do not support @SessionAttributes. (plus SessionStatus) [SPR-15887] #20442

spring-issuemaster opened this issue Aug 22, 2017 · 0 comments


None yet
2 participants
Copy link

commented Aug 22, 2017

Jean opened SPR-15887 and commented

@SessionAttributes is not supported by webflux.

I am expecting same @MVC code work in both servlet or netty environment.

A very simple example (spring-boot, kotlin, thymeleaf):


class DemoController {

    fun index(model: Model): String {
        val old_a = model.asMap()["a"] as? Int
        val a = 1 + (old_a ?: 0)

        model["a"] = a

        return "index"


<!DOCTYPE html>

<body th:text="${a}">


This demo works as expected - increasing numbers displayed for each request in web brower - with webmvc,
but not working - the number is always 1 - with webflux.

There's no SessionStatus argument resolver in webflux too.

Affects: 5.0 RC3

Referenced from: commits f76ac5b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.