开发者

Enunciate with spring mvc rest and other Enunciate Questions

Does any knows 开发者_JAVA技巧if Enunciate supports Spring MVC @RequestMapping rest annotations. If so does anyone have an enunciate.xml and pom.xml file for running the mvn plugin. The mvn plugin is not merging my web.xml properly..

So how do you rename /api servlet that Enunciate creates ... that is the name of the servlet that I am trying to document.

Thanks in advance.


Does any knows if Enunciate supports Spring MVC @RequestMapping rest annotations?

Answer: no, just JAX-RS.

Does anyone have an enunciate.xml and pom.xml file for running the mvn plugin? The mvn plugin is not merging my web.xml properly.

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>

enunciate.xml:

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

So how do you rename /api servlet that Enunciate creates?

Enunciate doesn't create a servlet named "/api". Not sure what you're talking about.


Actually, Enunciate does have a spring integration, you can find some more details here.

I must add that as for now, I'm struggling with Enunciate in order to make it work with Spring annotations. So far, without success.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜