2015-04-07 17 views
1

我從http://projects.spring.io/spring-batch/#quick-startSpring Batch的+引導和:組織/ springframework的/ WEB/WebApplicationInitializer.class]不能打開,因爲它不存在

做出了表率,當我嘗試運行應用程序,我有一個例外:

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 

怎麼了?項目很簡單,就像在春季批量網頁上一樣。

+0

你打算如何運行它? –

+0

通常,由日食運行應用程序 – razor

回答

3

它看起來像

@EnableAutoConfiguration 

在主類的戰利品的應用程序(嘗試初始化太多的東西?)刪除此註釋後 , 只有@SpringBootApplication離開, 一切工作。

+0

我有類似的問題,謝謝你。 – NewQueries

相關問題