开发者

url link is too long to fit in one line Spring MVC

How to avoid break in long url link sent through Spring MVC web app? It is a redirect url sent to email box in case of reset password request

http://man-01668:9090/HDCdemo/demoservice/portal/resetpassword.htm?pfpc=tMgmMyBhpVRi1pZq&redirect_url=http://localhost:8080/HDCdemo/demoservice/portal/myprofile.htm?_flowId=cit开发者_运维技巧izenportal/myprofile


This may be an obvious answer, but: make the URL shorter.

Option 1) use a url shortener such as bit.ly

Option 2) implement your own URL shortener, using, for example, an app like Yourls.

Option 3) remove some of the items from the URL by storing them in your database; for example, if you have a unique ID for the user, you can record in the DB what their redirect URL should be, so you don't need to put it into the URL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜