You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/ExceptionHandlerTests.java
+30-6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2012 the original author or authors.
2
+
* Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/ModelAssertionTests.java
+16-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2012 the original author or authors.
2
+
* Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
+7
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
207
207
this.applicationContext = applicationContext;
208
208
}
209
209
210
+
publicApplicationContextgetApplicationContext() {
211
+
returnthis.applicationContext;
212
+
}
213
+
210
214
/**
211
215
* Set the {@link javax.servlet.ServletContext}, e.g. for resource handling,
212
216
* looking up file extensions, etc.
@@ -216,6 +220,9 @@ public void setServletContext(ServletContext servletContext) {
216
220
this.servletContext = servletContext;
217
221
}
218
222
223
+
publicServletContextgetServletContext() {
224
+
returnthis.servletContext;
225
+
}
219
226
220
227
/**
221
228
* Return a {@link RequestMappingHandlerMapping} ordered at 0 for mapping
0 commit comments