How to set velocity layout directory and default template with spring in boot application.properties <p>If we don't use spring boot ,we could user velocity.properties just like this<code> tools.view.servlet.layout.directory =layout/ tools.view.servlet.layout.default.template=default.vm </code> or use this bean in our springmvc project </p> <pre><code>&lt;bean id="velocityViewResolver" class="org.springframework.web.servlet.view.velocity.VelocityLayoutViewResolver"&gt; &lt;property name="cache" value="false" /&gt; &lt;property name="layoutUrl" value="/layout/default.vm" /&gt; &lt;property name="prefix" value="/templates/" /&gt; &lt;property name="suffix" value=".vm" /&gt; &lt;property name="exposeSpringMacroHelpers" value="true" /&gt; &lt;property name="contentType" value="text/html;charset=UTF-8" /&gt; &lt;property name="viewClass" value="org.springframework.web.servlet.view.velocity.VelocityLayoutView" /&gt; &lt;!-- &lt;property name="toolboxConfigLocation" value="classpath:web/config/toolbox.xml" /&gt; &lt;property name="exposeSessionAttributes" value="true" /&gt; --&gt; &lt;/bean&gt; </code></pre> <p>but I want to know how to set velocity layout through application.properties. And I also has some confusion about the "spring.velocity.properties.* =" in application.properties. How and when we could use it.I could't find one demo about this.</p>