今天在项目中遇到response.sendRedirect(),代码执行但是页面不跳转的问题。经排查,因为我调用的方法将异常直接throw出去了,没有try catch,所以将response.sendRedirect()用try包起来即可。
controller中response.sendRedirect()无法跳转问题已解决
最新推荐文章于 2023-01-08 11:39:31 发布
今天在项目中遇到response.sendRedirect(),代码执行但是页面不跳转的问题。经排查,因为我调用的方法将异常直接throw出去了,没有try catch,所以将response.sendRedirect()用try包起来即可。