栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

匹配的通配符是严格的,但找不到元素“http”错误的声明

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

匹配的通配符是严格的,但找不到元素“http”错误的声明

问题解决了,我忘了添加spring-security-config.jar。我也更改了一些设置。正确的security.xml是:

<beans:beans xmlns="http://www.springframework.org/schema/security"    xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"        xsi:schemaLocation="http://www.springframework.org/schema/beans      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd      http://www.springframework.org/schema/security      http://www.springframework.org/schema/security/spring-security-3.0.4.xsd" >    <http access-denied-page="forms/error403.jsp" entry-point-ref="ntlmEntryPoint" servlet-api-provision="false">      <intercept-url pattern="/**" access="ROLE_GUEST,ROLE_OPERATOR,ROLE_ADMIN" />     <custom-filter position="PRE_AUTH_FILTER" ref="ntlmFilter"/>        </http>    <authentication-manager alias="mainAuthenticationManager">   <authentication-provider user-service-ref="userDetailsService" />        </authentication-manager>    <beans:bean id="userDetailsService"        >        <beans:property name="dataSource" ref="dataSource" />        <beans:property name="usersByUsernameQuery" value="select distinct name, ' ' as password, 1 as enabled from TMP_SPRING_USERS where name=?" />        <beans:property name="authoritiesByUsernameQuery" value="select name, role from TMP_SPRING_USERS where name=?" />    </beans:bean>    <beans:bean id="ntlmEntryPoint"        >        <beans:property name="authenticationFailureUrl" value="forms/error403.html" />    </beans:bean>    <beans:bean id="ntlmFilter"        >     <beans:property name="authenticationManager" ref="mainAuthenticationManager" />        <beans:property name="retryOnAuthFailure" value="true" />        <beans:property name="stripDomain" value="true"/>        <beans:property name="domainController" value="company.com" />        <beans:property name="jcifsProperties"> <beans:props>     <beans:prop key="jcifs.smb.lmCompatibility">0</beans:prop>      <beans:prop key="jcifs.smb.client.useExtendedSecurity">false</beans:prop>      <beans:prop key="jcifs.smb.client.domain">COMPANY</beans:prop>     <beans:prop key="jcifs.smb.client.username">somenycuser</beans:prop>     <beans:prop key="jcifs.smb.client.password">AReallyLoooongRandomPassword</beans:prop> </beans:props>         </beans:property>     </beans:bean></beans:beans>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/400529.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号