Spring 将参数从webflow传递到重定向页面

Spring 将参数从webflow传递到重定向页面,spring,attributes,url-redirection,spring-webflow,Spring,Attributes,Url Redirection,Spring Webflow,我有这个问题。 注册后,我将用户重定向到/login页面,但我希望将属性从webflow的结束状态传递到login.html,该属性表示“您已成功注册”。我怎样才能做到这一点 编辑:顺便说一句,我使用thymeleaf。当用户单击注册按钮时,处理注册的方法需要添加模型并插入消息作为属性并传递到登录页面 例如: //Suppose these is the method which handles the registeration void register(Model model

我有这个问题。 注册后,我将用户重定向到/login页面,但我希望将属性从webflow的结束状态传递到login.html,该属性表示“您已成功注册”。我怎样才能做到这一点


编辑:顺便说一句,我使用thymeleaf。

当用户单击注册按钮时,处理注册的方法需要添加模型并插入消息作为属性并传递到登录页面

例如:

    //Suppose these is the method which handles the registeration
   void register(Model model)
   {
     model.addAttribute("Message","You are successFully Login");
    return "loginPage";
   }
在login.jsp中,您可以获得如下消息对象:

${Message}

当用户单击“注册”按钮(处理注册的方法)时,您需要添加模型并插入消息作为属性并传递到登录页面

例如:

    //Suppose these is the method which handles the registeration
   void register(Model model)
   {
     model.addAttribute("Message","You are successFully Login");
    return "loginPage";
   }
在login.jsp中,您可以获得如下消息对象:

${Message}

一句话:这不适用于SpringWebFlux(Spring5),我必须用URL参数解决它,虽然这有点难看。有一个公开的问题:一句话:这不适用于SpringWebFlux(Spring5),我必须用URL参数解决它,尽管这有点难看。有一个悬而未决的问题: