title: How to set database login information from variable?
body: <p>I am using MyBatis in a Java project. I know that database access information such as host, database name, username and password are stored in <code>configuration.xml</code>. But I would like to know if I can set these login information from inside my Java program.</p>
  
  <p>It's because my application is accessing different databases on different addresses and I am configuring them in the application. Please help me. </p>