package ch.difty.sipamato.web;

import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.giffing.wicket.spring.boot.starter.app.WicketBootSecuredWebApplication;

import ch.difty.sipamato.web.pages.home.SipamatoHomePage;

@SpringBootApplication
public class SipamatoApplication extends WicketBootSecuredWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(SipamatoApplication.class, args);
    }

    @Override
    protected void init() {
        super.init();
        getComponentInstantiationListeners().add(new SpringComponentInjector(this));
        mountPackage("/", SipamatoHomePage.class);
    }

}

@@ -29,81 +29,8 @@
 b;%0A%0A
-import org.apache.wicket.spring.injection.annot.SpringComponentInjector;%0A
 impo
@@ -57,22 +57,40 @@
 rk.boot.
+autoconfigure.
 Spring
+Boot
 Applicat
@@ -130,32 +130,22 @@
 oot.
-autoconfigure
+builder
 .Spring
-Boot
 Appl
@@ -143,32 +143,39 @@
 pringApplication
+Builder
 ;%0A%0Aimport com.gi
@@ -456,16 +456,20 @@
         
+new 
 SpringAp
@@ -481,12 +481,25 @@
 tion
-.run
+Builder().sources
 (Sip
@@ -520,18 +520,22 @@
 on.class
-, 
+).run(
 args);%0A 
@@ -608,93 +608,8 @@
 ();%0A
-        getComponentInstantiationListeners().add(new SpringComponentInjector(this));%0A
     

Simplify application class