zoukankan      html  css  js  c++  java
  • Decoration5:引入swagger2进行API管理

    这一部我们计划把swagger2引入到项目中,把网站的接口以文档的形式展示出来。

    1、引入springfox-swagger2、springfox-swagger-ui

    2、实现Swagger2

    3、http://localhost:8080/swagger-ui.html 

    报错:

    Whitelabel Error Page
    
    This application has no explicit mapping for /error, so you are seeing this as a fallback.
    
    Wed May 10 21:29:48 CST 2017
    There was an unexpected error (type=Not Found, status=404).
    No message available

    用程序猿DD的源代码尝试也是报相同的错误

    用http://localhost:8080/v2/api-docs访问时可以返回结果的,可见是swagger2-ui的资源路径问题

  • 相关阅读:
    OSCache报错error while trying to flush writer
    html 输入框验证
    Struts2 一张图片引发的bug
    Html 小插件10 即时新闻
    String
    内部类
    多态
    抽象&接口
    继承
    封装
  • 原文地址:https://www.cnblogs.com/mingziday/p/6838363.html
Copyright © 2011-2022 走看看