The moose likes Spring and the fly likes Could annotation based and xml based configuration be used together in spring 2.5? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Could annotation based and xml based configuration be used together in spring 2.5?" Watch "Could annotation based and xml based configuration be used together in spring 2.5?" New topic
Author

Could annotation based and xml based configuration be used together in spring 2.5?

Deshraj Kiran
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Hi

I've been working on a project where controllers have been written extending Controller classes. Could I configure and use the POJO based Controllers as well (using @Controller) in the same application?

Many thanks


Skip Skipping
Deshraj Kiran
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Hi

I've got it resolved

Below are the lines needed to to be addeded to the web configuration file to have them working together:


I was too careless to not to add line 8 in my application.

Many thanks
 
 
subject: Could annotation based and xml based configuration be used together in spring 2.5?
 
developer file tools