• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring: context.refresh for mix configuration xml annot

 
Kay Lee
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
newb spring here, sorry for this boring/lame question.

How to refresh applicationContext when the web app using both configuration. i have xml and annotation config.
should i make two context to refresh for each type? like this..


or any other way?
i want to reload context unfortunately some bean is not inside xml file as it is defined in annotation style. so i got org.springframework.beans.factory.NoSuchBeanDefinitionException error.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!