“No operations defined in spec” Error while using RestEasy FrameWork with Swagger

流过昼夜 提交于 2020-02-01 08:54:12

问题


I have implemented REST apis using RESTEASY framework I am trying to implement swagger api documentation through web.xml i am able to get index.html but error is thrown that can't read from file. am I making mistake in making URL? my web.xml is as follows:

   <servlet>
          <servlet-name>swagger-servlet</servlet-name>
          <servlet-class>com.wordnik.swagger.jersey.config.JerseyJaxrsConfig</servlet-class>
          <init-param>
            <param-name>api.version</param-name>
            <param-value>1.1.0</param-value>
          </init-param>
          <init-param>
            <param-name>swagger.api.basepath</param-name>
            <param-value>http://192.168.10.191:8080/restapi/myservice</param-value>
          </init-param>
    </servlet>

来源:https://stackoverflow.com/questions/47427206/no-operations-defined-in-spec-error-while-using-resteasy-framework-with-swagge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!