title: Multiple Data Source using Spring JPA
body: <p>I am building a stand alone java application using Spring JPA frame
  work.  I am able to access the DB in below scenario: if I give the
  DB details in application.properties file as</p>
  
  <pre><code>spring.datasource.url=******** spring.datasource.username=******
  spring.datasource.password=******
  </code></pre>
  
  <p>then it's working properly.</p>
  
  <p>but I have to create two DB connections in the same application so,
  I changes the names as below</p>
  
  <pre><code>spring.Datasource1.url=********* spring.Datasource1.username=******
  spring.Datasource1.password
  
  spring.Datasource2.url=************ spring.Datasource2.username=****
  spring.Datasource2.password=*****
  </code></pre>
  
  <p>then it's not working. </p>
  
  <p>Can you please provide the solution for it?</p>
  
  <p>I have uploaded my code base in below location.
  <a href="https://github.com/nagtej/MultipleDataSource" rel="nofollow">https://github.com/nagtej/MultipleDataSource</a></p>