You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
586 B

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package com.gcc.erppostdata.mudhalvarpadaipagam;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.beans.factory.annotation.Qualifier;
  4. import org.springframework.jdbc.core.JdbcTemplate;
  5. import org.springframework.stereotype.Component;
  6. import javax.sql.DataSource;
  7. @Component
  8. public class MPPostData {
  9. @Autowired
  10. private JdbcTemplate jdbcTemplate;
  11. @Autowired
  12. public void setDataSource (@Qualifier("mysqlmudhalvarpadaipagamDataSource") DataSource dataSource){
  13. this.jdbcTemplate = new JdbcTemplate(dataSource);
  14. }
  15. }