【发布时间】:2015-06-11 21:28:39
【问题描述】:
我从http://projects.spring.io/spring-batch/#quick-start做了一个例子
当我尝试运行应用程序时出现异常:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: ; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/web/WebApplicationInitializer.class] cannot be opened because it does not exist
at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:395)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:165)
2015-04-07 11:00:15.443 ERROR 11912 --- [ main] o.s.boot.SpringApplication : Application startup failed
怎么了?项目很简单,就像在 Spring Batch 网页上一样。
【问题讨论】:
-
你是如何尝试运行它的?
-
通常,通过eclipse运行应用程序
标签: java spring spring-boot spring-batch