1

有谁知道 Enunciate 是否支持 Spring MVC @RequestMapping 休息注释。如果是这样,是否有人有用于运行 mvn 插件的 enunciate.xml 和 pom.xml 文件。mvn 插件没有正确合并我的 web.xml..

那么,您如何重命名 Enunciate 创建的 /api servlet……这是我要记录的 servlet 的名称。

提前致谢。

4

2 回答 2

4

有谁知道 Enunciate 是否支持 Spring MVC @RequestMapping 休息注释?

答:不,只是 JAX-RS。

有人有用于运行 mvn 插件的 enunciate.xml 和 pom.xml 文件吗?mvn 插件没有正确合并我的 web.xml。

pom.xml:

  <project><build><plugins>
    <plugin>
      <groupId>org.codehaus.enunciate</groupId>
      <artifactId>maven-enunciate-plugin</artifactId>
      <version>${project.version}</version>
      <executions>
        <execution>
          <goals>
            <goal>assemble</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

发音.xml:

<enunciate>
  <webapp mergeWebXML="./path/to/my/web.xml"/>

那么如何重命名 Enunciate 创建的 /api servlet?

Enunciate 不会创建名为“/api”的 servlet。不确定你在说什么。

于 2011-09-20T15:42:20.230 回答
2

实际上,Enunciate 确实有一个 spring 集成,你可以在这里找到更多细节。

我必须补充一点,就目前而言,我正在努力使用 Enunciate 以使其与 Spring 注释一起使用。到目前为止,没有成功。

于 2012-09-02T15:54:15.583 回答