提交 960082db 编写于 作者: S Sam Brannen

[SPR-8541] Oops! Fixed a minor logic error in DelegatingSmartContextLoader.

上级 8ccedd45
......@@ -123,7 +123,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) {
Assert.notNull(configAttributes, "configAttributes must not be null");
Assert.isTrue(configAttributes.hasLocations() && configAttributes.hasClasses(), String.format(
Assert.isTrue(!(configAttributes.hasLocations() && configAttributes.hasClasses()), String.format(
"Cannot process locations AND configuration classes for context "
+ "configuration %s; configure one or the other, but not both.", configAttributes));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册