0
功能,當我試圖配置家居招搖,它的工作..不知何故部分,它從資源忽略的功能和只考慮類@Api adnotation揚鞭忽略資源
我使用Apache CXF +彈簧
生成JSON只包含類的描述,這裏
..."apis":[{"path":"/","description":"Entities operations"}]...
沒有方法的控制器adnotations
@Path("/")
@Api(value = "/", description = "Entities operations")
@Controller
public class RepositoryResource
....
功能adnotation
@GET
@ApiOperation(value = "Method to check if this resources is up and running")
public String hello()
...
日誌消息spoted
Could not find a definition for bean with id {http://listing.jaxrs.swagger.wordnik.com/}ApiListingResourceJSON.http-destination
spring配置
<jaxrs:server id="restAPI" address="/" staticSubresourceResolution="true">
<jaxrs:serviceBeans>
<ref bean="swaggerResourceJSON"/>
<ref bean="repositoryResource"/>
</jaxrs:serviceBeans>
....