when I deploy the Spring Security3 example, helloworld-jc, I find the form submit to a url named /sample/login
用户: 密码:
,但我找不到其中的登录操作,有谁知道哪里是在春季登陆行动Security3?哪里是在默认的登录操作的Spring Security 3
when I deploy the Spring Security3 example, helloworld-jc, I find the form submit to a url named /sample/login
用户: 密码:
,但我找不到其中的登录操作,有谁知道哪里是在春季登陆行动Security3?哪里是在默认的登录操作的Spring Security 3
默认情况下,你会得到一个自动登录操作(如果y你不要配置一个)由spring security创建。使用标签(使用spring security 3.1和spring security xml模式(http://www.springframework.org/schema/security)),你可以在你的安全配置中配置它(假设你将要使用xml配置。对于java配置,这个想法是相同的,但显然与java差异) :
<security:form-login login-page="/your_login_page" default-target-url="/" authentication-failure-url="/your_login_page?error" />
这里面安全:HTTP标签查找http://docs.spring.io/spring-security/site/docs/3.0.x/reference/ns-config.html更多细节
。您可以在弹簧security.xml文件配置登录流程