Reference:
My understanding: The difference between 302 and 303 in the HTTP protocol
Springmvc redirect prefix always redirects to http,how doing I make it stay
Problem Description:
The project is deployed in WebSphere and the entire station is running under HTTPS, and when jumping through spring Redirect, the link address has the HTTPS beginning turned into HTTP, in which case the project request is inaccessible.
Workaround:
<!--redirecthttp10compatible: Resolves a protocol that uses the redirect redirect address to HTTP in an HTTPS environment, the failure to access the service is
set to False, and the compatibility support for the http1.0 protocol is turned off --
<bean id= "viewresolver"
class= " Org.springframework.web.servlet.view.InternalResourceViewResolver ">
<property name=" Viewclass "
Value= "Org.springframework.web.servlet.view.JstlView"/>
<property name= "prefix" value= "/web-inf/pages/ "/>
<property name=" suffix "value=". jsp "/>
<property name=" redirecthttp10compatible "value=" False "/>
</bean>