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-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
+41-32Lines changed: 41 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
213
213
this.applicationContext = applicationContext;
214
214
}
215
215
216
+
/**
217
+
* Return the associated Spring {@link ApplicationContext}.
218
+
* @since 4.2
219
+
*/
216
220
publicApplicationContextgetApplicationContext() {
217
221
returnthis.applicationContext;
218
222
}
@@ -226,6 +230,10 @@ public void setServletContext(ServletContext servletContext) {
226
230
this.servletContext = servletContext;
227
231
}
228
232
233
+
/**
234
+
* Return the associated {@link javax.servlet.ServletContext}.
235
+
* @since 4.2
236
+
*/
229
237
publicServletContextgetServletContext() {
230
238
returnthis.servletContext;
231
239
}
@@ -268,6 +276,7 @@ public RequestMappingHandlerMapping requestMappingHandlerMapping() {
268
276
/**
269
277
* Protected method for plugging in a custom subclass of
0 commit comments