In Spring MVC, you can directly configure the redirectHttp10Compatible property to false. As follows:
<! -- redirectHttp10Compatible: solve the HTTPS environment using the redirect redirect address into the HTTP protocol, the problem of unable to access the service, set tofalse<bean id=, that is, the http1.0 protocol compatibility support is turned off"viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/" />
<property name="suffix" value=".jsp" />
<property name="redirectHttp10Compatible" value="false" />
</bean>Copy the code
From: Link