I have a huge set of really old Portlets code I am being required to "refactor" due to a bug that was found in Prod. The refactor is requiring me to update to a new library, and as a result move from a custom DAO structure using "Query" classes to one that uses Springs JdbcTemplate and annotations to wire everything together.
BUT, there are a LOT of portlets.  Is there a way to use Spring with Annotations for DI that does NOT require me to completely re-write the Portlet to use DispatcherPortlet and the @RequestMappings?  I just want to mark all the Portlets, and the handful of Servlets as well, with @Component just to have Spring inject the classes I need.  Where I am struggling is in how to bootstrap the ApplicationContext without using the Spring-provided dispatcher portlet/servlet to initiate the context.  I would like to not have to use the ApplicationContext directly to pull the necessary beans out by hand, if possible.  I do have contextConfigLocation and the ContextLoaderListener defined in my web.xml already.