title: How do I manually configure a JdbcTemplate in Spring Boot?
body: <p>Here's my basic DAO implementation class:</p>
  
  <pre><code>@Repository
  public class MeetingDaoImpl implements MeetingDao {
  
    @Autowired
    JdbcTemplate jdbcTemplate;
  
    public boolean insertNewMeeting(String initials, String meetingId, int numYears) {
  
      int numRowsAffected = jdbcTemplate.update(SQLConstants.INSERT_NEW_MEETING,
          new Object[] {initials.toLowerCase(), meetingId, numYears});
  
      return numRowsAffected &gt; 0;
  
    }
  }
  </code></pre>
  
  <p>The <code>jdbcTemplate</code> automatically reads the <code>spring.datasource</code> properties from my <code>application.properties</code> file, which is great, but it includes my DB password which is something I don't want to commit. Instead, I'd like to read it from a local <code>server.properties</code> file instead which I can easily read from a Java class. </p>
  
  <p>Is there a way to configure the <code>jdbcTemplate</code> with Java? I've seen multiple examples using a bean and XML, but none with Java.</p>