4

springmvc shrio http https 跳转问题

 2 years ago
source link: https://www.v2ex.com/t/806966
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

springmvc shrio http https 跳转问题

  jiobanma · 16 小时 2 分钟前 · 184 次点击

公司老项目登录升级,基于 springmvc 与 shiro 实现的。系统登录要跳到集团的一个登录页,那边的链接是 https 的。controller 中登录方法返回的内容是:return "redirect:"+targetUrl;其中 targetUrl 是登录页链接,https 的。但是项目启动,如果配置 targetUrl 为 HTTPs,会导致 shiro 一致重复调用登录接口,换成 http 就不会了,搞不懂为啥,有大佬能提供点思路嘛?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK