【发布时间】:2014-05-12 14:02:01
【问题描述】:
我在 jenkins 中运行 maven build 时遇到了一点问题。它正在尝试运行我的集成测试,但不断抛出此错误:
java.lang.IllegalStateException: Neither GenericXmlContextLoader nor AnnotationConfigContextLoader was able to detect defaults, and no ApplicationContextInitializers were declared for context configuration [ContextConfigurationAttributes@2d10dd87 declaringClass = 'com.xxxx.api.services.MessageServiceImplIntegrationTest', locations = '{}', classes = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader']
查看完整堆栈跟踪链接link。
【问题讨论】: