![](/img/trans.png)
[英]class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class] cannot be opened because it does not exist
[英]Spring Batch+Boot and: [org/springframework/web/WebApplicationInitializer.class] cannot be opened because it does not exist
我在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
怎么了? 项目很简单,就像在春季批量网页上一样。
看起来像
@EnableAutoConfiguration
在主类上破坏应用程序(尝试初始化太多东西?)删除这个注释后,只剩下@SpringBootApplication,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.