title: Spring JdbcTemplate , How to dynamically set username and password in Spring config XML file?
body: <p>Spring JDBC:  while using JdbcTemplate how to set username and password for every user ?, Currently I am Configuring datasource object as a spring bean (Spring config.xml file ) and able to login with sinlge username and password , also used properties file and placeholder for the same</p>
  
  <pre><code>&lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName" value="com.mysql.jdbc.Driver"&gt;&lt;/property&gt;
      &lt;property name="url" value="jdbc:mysql://localhost:3306/apu"&gt;&lt;/property&gt;
      &lt;property name="username" value="root"&gt;&lt;/property&gt;
      &lt;property name="password" value=""&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>What are the ways to set username value and password value for every user who logsin ?
  This is my first Spring application hence not able to find right approach ..</p>