- - The object you are autowiring needs to be annotated with @Component
- - The object that will contain the autowired object needs to come from the spring context, meaning:
- - applicationContext.xml needs to have a bean definition of it
- - the place where its is newed needs to be replaced with the call to pull it from the WebApplicationContext
No comments:
Post a Comment