2017-03-22 87 views

回答

0

我使用smoketurner包和它運作良好

https://github.com/smoketurner/dropwizard-swagger

當您啓動dropwizard應用

INFO [2017-03-23 04:10:03,931] [main] [DropwizardResourceConfig]: The following paths were found for the configured resources: 

    GET  /swagger (io.swagger.jaxrs.listing.ApiListingResource) 
    GET  /swagger.{type:json|yaml} (io.swagger.jaxrs.listing.ApiListingResource) 
+0

什麼版本dropwizrd你在用嗎?我在0.8,它遇到了一些問題 –

+1

謝謝!我有一個衝突的依賴關係,否則很好 –