[英]Spring Security Config Https issue
我是Spring的新手。 我有一個關於配置的問題,以便在登錄后允許https重定向。 我正在將Vmware vfabric tc服務器用作Web服務器。
在app-security-context.xml
中,http塊中有一個警告。 該警告是:
Referenced bean 'org.springframework.security.web.access.channel.
ChannelDecisionManagerImpl' not found
[config set: PresentationLayer/ web-context]
因此,當我嘗試登錄時,瀏覽器中會顯示一條錯誤消息“該頁面不可用”
我不確定您的問題是否來自該警告(僅是警告)。 部署應用程序時,看不到任何錯誤跟蹤嗎?
無論如何,您可以通過在安全上下文中添加幾行來刪除該警告。 例如:
<bean class="org.springframework.security.web.access.channel.ChannelDecisionManagerImpl">
<property name="channelProcessors">
<list>
<bean class="org.springframework.security.web.access.channel.SecureChannelProcessor" />
<bean class="org.springframework.security.web.access.channel.InsecureChannelProcessor" />
</list>
</property>
</bean>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.