日期:2014-05-16 浏览次数:20583 次
?
?
<!-- [if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} p\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} v\:textbox {display:none;} </style> <![endif]--><!-- [if !ppt]--><!-- [endif]-->
<bean id="dataSource"class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName"><value>……</value</property> <property name=“url”><value>……</value></property> <property name="username"><value>……</value></property> <property name="password"><value>……</value></property> </bean>?
<bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" />?
<!-- 用sql形式验证 --> <bean class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler"> ?<property name="sql" value="select password from t_user where username=?" /> ?<property name="dataSource" ref="dataSource" /> <property name=“passwordEncoder” ref=“mypasswordEncoder”/> ?</bean>?
<bean id="mypasswordEncoder" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder"> <constructor-arg value="MD5"/> </bean>?