Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Annotation-based controllers not working if it is inside jar file

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?

like image 861
Arun P Johny Avatar asked Aug 07 '09 02:08

Arun P Johny


1 Answers

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.

like image 131
Arun P Johny Avatar answered Sep 22 '22 23:09

Arun P Johny