@ -72,7 +88,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -72,7 +88,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
/**
*CreateanewGenericWebApplicationContext.
*Createanew{@codeGenericWebApplicationContext}.
*@see#setServletContext
*@see#registerBeanDefinition
*@see#refresh
@ -82,8 +98,8 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -82,8 +98,8 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -92,8 +108,8 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -92,8 +108,8 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -103,9 +119,10 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -103,9 +119,10 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -116,7 +133,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -116,7 +133,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -143,8 +160,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -143,8 +160,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -157,7 +173,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -157,7 +173,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@ -236,7 +252,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -236,7 +252,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
if(StringUtils.hasText(configLocation)){
thrownewUnsupportedOperationException(
"GenericWebApplicationContext does not support setConfigLocation(). "+
"Do you still have an 'contextConfigLocations' init-param set?");
"Do you still have a 'contextConfigLocation' init-param set?");
}
}
@ -245,7 +261,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
@@ -245,7 +261,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
if(!ObjectUtils.isEmpty(configLocations)){
thrownewUnsupportedOperationException(
"GenericWebApplicationContext does not support setConfigLocations(). "+
"Do you still have an 'contextConfigLocations' init-param set?");
"Do you still have a 'contextConfigLocations' init-param set?");
@ -84,6 +84,11 @@ NOTE: In addition to using the ServletContext API directly, you can also extend
@@ -84,6 +84,11 @@ NOTE: In addition to using the ServletContext API directly, you can also extend
`AbstractAnnotationConfigDispatcherServletInitializer` and override specific methods
(see the example under <<mvc-servlet-context-hierarchy>>).
NOTE: For programmatic use cases, a `GenericWebApplicationContext` can be used as an
alternative to `AnnotationConfigWebApplicationContext`. See the