title: Error using maven filtering with Spring Boot
body: <p>I am using Spring Boot 2.6.3, maven and IntelliJ.</p>
  <p>I am having a problem with maven filtering and this is the error:</p>
  <pre><code>java.lang.IllegalStateException: Failed to load ApplicationContext
  Caused by: org.yaml.snakeyaml.scanner.ScannerException: 
  while scanning for the next token
  found character '@' that cannot start any token. (Do not use @ for indentation)
   in 'reader', line 3, column 24:
      driver-class-name: @jdbc.driver@
  </code></pre>
  <p>This in my application.yml file</p>
  <pre><code>spring:
    datasource:
      driver-class-name: @jdbc.driver@
  </code></pre>
  <p>And this is in my pom file</p>
  <pre><code>&lt;properties&gt;
    &lt;!-- JDBC Details --&gt;
    &lt;jdbc.url&gt;jdbc:oracle:thin:@127.0.0.1:1521:XE&lt;/jdbc.url&gt;
    &lt;jdbc.driver&gt;oracle.jdbc.OracleDriver&lt;/jdbc.driver&gt;
    ...
  &lt;properties&gt;
  ...
  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
        &lt;configuration&gt;
          &lt;addResources&gt;false&lt;/addResources&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <p>And ideas why I am having this issue?</p>
  <p>Thanks</p>