コード例 #1
0
 public static void main(String[] args) {
   SpringApplication application =
       new SpringApplication(
           TransformerMessageEndpointMain.class, TransformerMessageEndpointConfiguration.class);
   application.setApplicationContextClass(AnnotationConfigApplicationContext.class);
   application.run(args);
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 public static void main(String[] args) {
   SpringApplication application = new SpringApplication(JedisClientMain.class);
   application.setApplicationContextClass(AnnotationConfigApplicationContext.class);
   application.run(args);
 }