Spring MVC “redirect:” prefix always redirects to http — how do I make it stay on https?

后端 未结 7 1213
鱼传尺愫
鱼传尺愫 2020-12-07 16:28

I solved this myself, but I spent so long discovering such a simple solution, I figured it deserved to be documented here.

I have a typical Spring 3 MVC setup with

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 17:22

    I add scheme="https" in file server.xml for connector with port="80":

    
    

提交回复
热议问题