【发布时间】:2012-08-07 04:32:55
【问题描述】:
我发现了很多关于在 heroku 下强制执行 HTTPS 的问题,但没有关于 java 的回复。
这是我找到的链接:
斯卡拉:http://www.andersen-gott.com/2012/03/using-unfiltered-and-https-on-heroku.html
导轨:Rails - How to Redirect from http://example.com to https://www.example.com
请注意,我使用的是 Spring MVC 3.1,因此我更喜欢基于 WebMvcConfigurerAdapter.addInterceptors(InterceptorRegistry registry) 的解决方案
【问题讨论】: