mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix build after Spring Framework deprecation
See spring-projects/spring-framework#28905
This commit is contained in:
parent
09c753d445
commit
a8c558a671
@ -244,12 +244,6 @@ public class SpringBootContextLoader extends AbstractContextLoader {
|
||||
return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApplicationContext loadContext(String... locations) throws Exception {
|
||||
throw new UnsupportedOperationException(
|
||||
"SpringApplicationContextLoader does not support the loadContext(String...) method");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getResourceSuffixes() {
|
||||
return new String[] { "-context.xml", "Context.groovy" };
|
||||
|
@ -186,11 +186,6 @@ class ErrorPageFilterIntegrationTests {
|
||||
return context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApplicationContext loadContext(String... locations) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getResourceSuffixes() {
|
||||
return EMPTY_RESOURCE_SUFFIXES;
|
||||
|
Loading…
Reference in New Issue
Block a user