【问题标题】:Spring annotation configuration does not find directories/classes in JARsSpring 注解配置在 JAR 中找不到目录/类
【发布时间】: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


    【解决方案1】:

    Maven 2 生成目录条目,这就是这个问题的答案。

    【讨论】:

      猜你喜欢
      • 2018-10-05
      • 1970-01-01
      • 2017-08-07
      • 1970-01-01
      • 1970-01-01
      • 2017-06-19
      • 1970-01-01
      • 1970-01-01
      • 2011-11-20
      相关资源
      最近更新 更多