【发布时间】:2011-05-01 21:31:58
【问题描述】:
我和这些人有同样的问题:
Spring Annotation-based controllers not working if it is inside jar file
http://forum.springsource.org/showthread.php?t=64731
...但不同的是我使用 Maven 2 作为构建工具。
如何使用 Maven 2 实现相同的效果?
我看到了在清单中创建类路径条目的这种解决方案,但它会生成许多指向 JAR 的绝对链接,这在我的生产环境中没有意义: Maven - how can I add an arbitrary classpath entry to a jar?
【问题讨论】:
标签: spring maven-2 annotations