xml intranet security-context.xml
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml intranet security-context.xml相关的知识,希望对你有一定的参考价值。
<?xml version="1.0" encoding="UTF-8"?>
<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.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security.xsd">
<!-- comment out this to get autowire working -->
<!-- <debug /> -->
<http pattern="/resource/**" security="none" />
<http auto-config="true">
<intercept-url pattern="/login**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<intercept-url pattern="/login-auto/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<intercept-url pattern="/admin**" access="ROLE_ADMIN" />
<intercept-url pattern="/**" access="ROLE_USER" />
<!-- access denied page -->
<access-denied-handler error-page="/403" />
<form-login login-page="/login" default-target-url="/"
authentication-failure-url="/login?error" username-parameter="username"
password-parameter="password" login-processing-url="/authentication" />
<logout invalidate-session="true" logout-success-url="/login?logout" />
</http>
<beans:bean id="passwordEncoder"
class="org.springframework.security.authentication.encoding.ShaPasswordEncoder">
<beans:constructor-arg value="256" />
</beans:bean>
<authentication-manager>
<authentication-provider ref="authenticationProvider" />
</authentication-manager>
</beans:beans>
以上是关于xml intranet security-context.xml的主要内容,如果未能解决你的问题,请参考以下文章
使用 VBA 解析 XML 网页文件
Intranet 应用程序之间的通信
用于私有 Intranet 应用程序的 Google Analytics
让 IIS 在 Intranet 环境中模拟 Windows 用户到 SQL Server
没有 APNS 的推送通知具有安全的 Intranet
VB .Net to PHP - 在 Intranet 上获取用户窗口登录