public static void main(String[] args) { ConfigurableApplicationContext c = SpringApplication.run(Application.class, args); c.getBean(WebSocketConfigurer.class); System.out.println("test"); }