Last active
December 19, 2015 05:49
-
-
Save relax-more/5907090 to your computer and use it in GitHub Desktop.
[java][spring] SpringMVC の redirect を利用した際にHttpsを引き続き利用するための設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spring MVC “redirect:” prefix always redirects to http — how do I make it stay on https? | |
http://stackoverflow.com/questions/3401113/spring-mvc-redirect-prefix-always-redirects-to-http-how-do-i-make-it-stay/3401157#3401157 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="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" /> | |
<!-- impotant--> | |
<property name="redirectHttp10Compatible" value="false" /> | |
<!-- impotant end--> | |
</bean> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment