Rectangle 27 0

java Spring redirect not working, only showing redirect:url in browser?


@endless What's the actual problem being faced by you?

Have a look at the purpose of @ResponseBody. Problem is due to @ResponseBody anotation which is showing the content as is. The annotation is used when one wants to pass the content as Ajax response. removing the @ResponseBody will solve the purpose.

Note