下面一段代码, 有地方不明白,可能涉及到命名空间,那里有这方面的解释,就象我声名了
<authentication-provider>,但我到那里去查才能知道我下面要配置什么,过去做ACEGI还可以看代码,查看具体类中的属性 
这是一种配置 
<authentication-provider>
         <password-encoder hash="md5"/>
         <jdbc-user-service data-source-ref="dataSource"
            users-by-username-query="select userid,password,workstatus as enabled from User where userid=?"
            authorities-by-username-query="select a.userid,b.groupname as authority from user a,usergroup b where a.groupid=b.groupid and userid=?"/>
    </authentication-provider>还有另外一种配置
  <authentication-provider user-service-ref="customUserDetailsService"/>  <beans:bean id="customUserDetailsService" class="login.MyUserDetailsService" />这两种配置都正确,谁能给解释一下