title: Spring Boot Logback DB Appender Properties
body: <p>Hi I want to use a <code>DBAppender</code>in my Spring Boot application. I want to retrieve database connection properties from the <code>application.properties</code> file. However it doesn't seem to recognize them.
  Keep in mind that I'm using <code>Spring Boot 1.2.x</code> so I can't use <code>logback-spring.xml</code> yet.</p>
  
  <p>The configuration I'm using is the following:</p>
  
  <pre><code>&lt;appender name="DB" class="ch.qos.logback.classic.db.DBAppender"&gt;
          &lt;connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource"&gt;
  
              &lt;driverClass&gt;${spring.datasource.driver-class-name}&lt;/driverClass&gt;
              &lt;url&gt;${spring.datasource.url}&lt;/url&gt;
              &lt;user&gt;${spring.datasource.username}&lt;/user&gt;
              &lt;password&gt;${spring.datasource.password}&lt;/password&gt;
          &lt;/connectionSource&gt;
      &lt;/appender&gt;
  </code></pre>