title: Using mysql database to authenticate users in Spring security?
body: <p>I want to use Spring security to authenticate users in my web application..
  Since am  not a matured user to Spring framework ,i can't get a clear idea about how we can do the configuration settings to use jdbc-user-service ..
  i had done the following configurations.but its not working</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;authentication-manager&gt;
      &lt;authentication-provider&gt;
           &lt;jdbc-user-service data-source-ref="myDataSource"/&gt;
      &lt;/authentication-provider&gt;        
  &lt;/authentication-manager&gt;
  &lt;beans:bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
      &lt;beans:property name="driverClassName" value="com.mysql.jdbc.Driver"/&gt;
      &lt;beans:property name="url" value="jdbc:mysql://localhost:3306/testDB"/&gt;
      &lt;beans:property name="username" value="admin"/&gt;
      &lt;beans:property name="password" value="admin"/&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>..can anyone please help me to solve the issue with a sample config file.
  Thanks in advance.</p>