Java – spring annotation based controllers do not work in jar files
•
Java
I have some annotation - based controllers in the sub - module These modules are deployed as jar files
The annotation - based controller from the jar file was not loaded into the spring configuration
I use the export utility in eclipse to manually export jar files
Does anyone face this problem?
Solution
When exporting jar files using the export utility in eclipse, an option named add directory entries appears Check this option and export the jar file, which will fix the problem
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码