【问题标题】:Spring Security Config Https issueSpring Security Config Https问题
【发布时间】:2014-02-19 15:33:00
【问题描述】:

我是 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]

所以当我尝试登录时,我的浏览器中会出现一条错误消息“该页面不可用”

【问题讨论】:

  • 发布你的app-security-context.xml的内容

标签: java spring https


【解决方案1】:

我不确定您的问题是否来自该警告(这只是一个警告)。部署应用程序时,您没有看到任何错误跟踪吗?

无论如何,您可以通过在安全上下文中添加几行来删除该警告。例如:

<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>

【讨论】:

    猜你喜欢
    • 2020-04-12
    • 1970-01-01
    • 1970-01-01
    • 2018-10-09
    • 1970-01-01
    • 2016-09-29
    • 2017-04-22
    • 2016-10-30
    相关资源
    最近更新 更多