【问题标题】:Enunciate with SpringMVC Annotation-based configuration使用基于 SpringMVC Annotation 的配置进行发音
【发布时间】:2014-04-17 14:19:39
【问题描述】:

我正在尝试使用 Enunciate 为我使用 Spring MVC 3.2 用 Ja​​va 编写的 REST API 生成静态文档。 Enunciate 网站声称它通过在此处使用特定插件来支持 Spring:

http://enunciate.codehaus.org/module_spring_app.html

查看配置选项时,看起来我应该导入一个spring applicationContext.xml。我对这个项目使用了基于注解的配置,所以我没有 applicationContext.xml。有没有办法在我的情况下完成这项工作?

提前感谢您的帮助。

【问题讨论】:

    标签: java rest spring-mvc enunciate


    【解决方案1】:

    Enunciate 目前支持 Spring Web 注解。

    【讨论】:

    • 这在 2018 年不再是真的了。现在有一个 spring 模块:github.com/stoicflame/enunciate/wiki/Module-Spring-Web。但是,我仍在努力让它与我的 SpringBoot 应用程序一起工作,所以不确定它的兼容性如何。
    • 它应该与 Spring Boot 一起工作。我们有许多在 Spring boot 上运行的成功记录的应用程序。
    • 我正在将 Enunciate 添加到使用 Spring Boot 制作的 Web 服务应用程序中:您可以链接一些示例吗?
    • 目前不支持 Spring Web Services;只是 Spring Web (REST) 注释。
    猜你喜欢
    • 1970-01-01
    • 2013-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-10
    • 2021-01-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多