I have an existing web.xml and I am trying to add springs to a project. I would like to use java based spring config: like the following.
AnnotationConfigWebApplicationContext appContext = new AnnotationConfigWebApplicationContext();
appContext.register(AppConfig.class);
However, I don't want a WebApplicationInitializer, because I don't want to rewrite the web.xml.
Is there way to reference the AppConfig.class from the web.xml? I don't want to define all my object in xml like old spring.
Thanks