在春天获取密码和用户名

时间:2015-07-18 01:42:34

标签: spring-security

将此作为配置,但它无法构建netbeans请我缺少什么。我用wicket

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
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.xsd 
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd">


<security:authentication-manager alias="authenticationManager">
<authentication-provider>
    <jdbc-user-service data-source-ref="dataSource" users-by-username-query="select username,password from registration where username=? and Password = ?" />
</authentication-provider>
</security:authentication-manager>

<security:global-method-security secured-annotations="enabled" />


</beans>

0 个答案:

没有答案