<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/jsp/"/>
        <property name="suffix" value=".jsp"/>
        <!-- redirect to https  -->
        <property name="redirectHttp10Compatible" value="false"/>
    </bean>

 

参考链接:http://stackoverflow.com/questions/3401113/spring-mvc-redirect-prefix-always-redirects-to-http-how-do-i-make-it-stay

 

用Nginx做反向代理时 response.sendRedirect(); https

参考链接:http://serverfault.com/questions/372886/prevent-nginx-from-redirecting-traffic-from-https-to-http-when-used-as-a-reverse

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-10-16
  • 2021-12-02
  • 2021-12-20
  • 2022-01-01
猜你喜欢
  • 2021-05-30
  • 2021-06-19
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案