title: How to close the connection in Spring Boot after jdbcTemplate executes the query?
body: <p>In Spring Boot, does jdbcTemplate not close the connection automatically once after the it executes the query?
  In this case, I am executing a query using jdbcTemplate(where it connects to teradata) but the session is not closing after the query is executed. How can I close the session?</p>
  
  <p>This is my dao file - </p>
  
  <pre><code>@Component
  public class DDLReviewDao { 
  
      @Autowired
      @Qualifier("devbJdbc")
      private JdbcTemplate jdbcTemplate;
  
      public static final Logger logger = LogManager.getLogger(DDLReviewDao.class);
  
      public List&lt;DDLObject&gt; getDDLReviewData(DDLQuery ddlQuery) {
  
          String selectSql = MacroGenerator.generateMacro(ddlQuery);                  
          List&lt;DDLObject&gt; ddlObject = jdbcTemplate.query(selectSql, new DDLMapper());                 
          logger.info(ddlObject);
          return ddlObject;
      }
  
  }
  </code></pre>