spring boot property with dashes
<p>Should the following application.properties:</p>

<pre><code>spring.datasource.tomcat.init-s-q-l
</code></pre>

<p>correctly bind to the object property </p>

<pre><code>org.apache.tomcat.jdbc.pool.DataSource.initSQL
</code></pre>

<p>The key init-s-q-l is suggested by IntelliJ, yet it does not bind correctly. </p>

<p>The following <em>does</em> work:</p>

<pre><code>spring.datasource.tomcat.initSQL
</code></pre>

<p>I thought this was an IntelliJ bug, so I created an issue:
<a href="https://youtrack.jetbrains.com/issue/IDEA-160621" rel="nofollow">IDEA-160621</a></p>

<p>However, they seem to think it is a bug in spring boot. The bug report has an attached example project if it helps.
Thanks, Tom</p>