public static void main(String[] args) { SpringApplication application = new SpringApplication( TransformerMessageEndpointMain.class, TransformerMessageEndpointConfiguration.class); application.setApplicationContextClass(AnnotationConfigApplicationContext.class); application.run(args); }
void configure( MergedContextConfiguration configuration, SpringApplication application, List<ApplicationContextInitializer<?>> initializers) { WebMergedContextConfiguration webConfiguration = (WebMergedContextConfiguration) configuration; if (AnnotationUtils.findAnnotation(webConfiguration.getTestClass(), IntegrationTest.class) == null) { MockServletContext servletContext = new MockServletContext(webConfiguration.getResourceBasePath()); initializers.add(0, new ServletContextApplicationContextInitializer(servletContext)); application.setApplicationContextClass(GenericWebApplicationContext.class); } }
public static void main(String[] args) { SpringApplication application = new SpringApplication(JedisClientMain.class); application.setApplicationContextClass(AnnotationConfigApplicationContext.class); application.run(args); }