title: Wicket + Spring Boot + .war file deployment
body: <p>Building on the example here: <a href="https://github.com/Pentadrago/spring-boot-example-wicket" rel="nofollow">https://github.com/Pentadrago/spring-boot-example-wicket</a><br>
  And taking into account the jar-to-war guide here: <a href="https://spring.io/guides/gs/convert-jar-to-war/" rel="nofollow">https://spring.io/guides/gs/convert-jar-to-war/</a><br>
  I'd like to convert my existing Wicket + Spring (using data-jpa and security) to Spring Boot. It's been fairly easy to get the fat-jar setup to work, but it has so far proved impossible for me to convert this setup into a .war file to deploy in Tomcat.</p>
  
  <p>The issue stems from the conflicting instructions to:</p>
  
  <ul>
  <li>on the one hand <code>extends org.springframework.boot.context.web.SpringBootServletInitializer</code> from a non-<code>@Configuration</code> class for the jar-to-war conversion guide,</li>
  <li>while on the other <code>implements org.springframework.boot.context.embedded.ServletContextInitializer</code> for a <code>@Configuration</code> marked class for the fat-jar Wicket example.</li>
  </ul>
  
  <p>I've not been able to align the two such that I get a working application both when debugging with the embedded container, and when deployed as .war in Tomcat.</p>
  
  <p><strong>Can anyone tell me how I can setup a spring-boot enabled wicket application that I can deploy as a .war file?</strong></p>