我有一个应用程序,其中页面不在 jsp 中,而是在速度中,并且它也没有与 spring 一起运行......我想将 spring 安全性集成到它,但我找不到任何文档......我在springsource 文档文档,但我找不到该怎么做。甚至可以开始吗?如果是这样,我该怎么做?
我试图准备一个 spring-security-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>
- 谢谢您的帮助