I've some annotation-based controller inside a sub module. These modules are deployed as jar files.
The annotation-based controllers from the jar file is not getting loaded to the spring configuration.
I'm manually exporting the jar file using the export utility in eclipse.
Did any one faced this problem?
When you export the jar file using the export utility in eclipse there is a option called Add directory entries. Check this option and export the jar file, this will solve the problem.
You just at base-package
to <context:component-scan />
in root-context.xml
file. That all I need for my case.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.