SpringMVC中ModelAndView或者其他的返回方式,如果以post方式返回结果给另外一个应用
比如我有一个项目test发送了一个post请求到 projectMVC,在projectMVC中的controller中如何以post方式返回结果给请求的项目test?
User.java
id;
userName;
password;@.........
public ..... testController{
   public ModelAndView test(HttpServletRequest request){
       ..................;
       Map<String, String> map = new HashMap<String, String>();
       map.put("id", user.getId());
       map.put("userName", user.getUserName());
       map.put("password", user.getPassword());
      return new ModelAndView(new RedirectView("http://localhost:8080/test/test.jsp"), map);   }
}
这样的转发是get方式,所有的参数都会被暴露在地址栏,想问一下有没有post方式直接把对象返回到
http://localhost:8080/test/test.jspSpringMVC ModelAndView