0
我使用spring mvc和spring security來鎖定web服務。我已限制所有連接使用使用此HTTPS ...如何在http連接上返回http狀態403,而不是在https上使用Spring
<http auto-config='true'>
<intercept-url pattern="/**" access="ROLE_USER" requires-channel="https"/>
<http-basic/>
</http>
但是,當我連接通過HTTP我沒有得到HTTP狀態代碼403禁止。