2
我有一個應用程序的頁面不是在jsp,但速度,並沒有與春天運行...我想整合春季安全到它,但我找不到任何文檔...我搜索在springource文檔documentation,但我無法找到該做什麼。甚至可以開始?如果是這樣,我該怎麼做?彈簧安全與速度?
我想準備一個彈簧安全的context.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"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd">
<http pattern="/app/template/Login.vm" security="none" />
<http auto-config="false" use-expressions="true" >
<form-login login-page="/app/template/Login.vm/" username-parameter="loginName" password-parameter="password"
login-processing-url="/app/template/Login.vm"
default-target-url="/app/template/Home.vm" />
</http>
<authentication-provider>
<user-service>
<user name="xx" password="123" authorities="ROLE_USER, ROLE_ADMIN" />
<user name="yy" password="456" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
--thank你的幫助