The problem of using (spring mvc) redirect to redirect to the http protocol in the https environment of the entire web site

Problem Description:

        The project is deployed in websphere, and the whole station runs under https. When jumping through spring  redirect, the link address starts with https and changes to http. In this case, the project request cannot be accessed.

Solution:

 

[html]  view plain copy  
 
  View code snippets on CODE Derive to my code slice
  1. <!-- redirectHttp10Compatible: Solve the problem that the service cannot be accessed by using the redirect redirect address to http protocol in the https environment  
  2.                    Set to false, which closes the compatibility support for the http1.0 protocol  
  3.  -->  
  4.     <beanid="viewResolver"   
  5.         class="org.springframework.web.servlet.view.InternalResourceViewResolver">  
  6.         <propertyname="viewClass"   
  7.             value="org.springframework.web.servlet.view.JstlView"/>   
  8.         <propertyname="prefix"value="/WEB-INF/pages/"/>     
  9.         <propertyname="suffix"value=".jsp"/>     
  10.         <propertyname="redirectHttp10Compatible"value="false"/>     
  11.     </bean>  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326525259&siteId=291194637