web services - How to define swagger docket bean in .xml file? -


i done swagger integration this link

it works ! want configure docket bean in .xml file can define docket bean in .xml file ? if yes how define docket bean , properties.. i'm doing follwing way

    @configuration     @enableswagger2     public class swaggerconfiguration {      @bean         public docket api() {             return new docket(documentationtype.swagger_2).select().apis(                requesth`enter code here`andlerselectors.any()).paths(pathselectors.any()).build();         }     } 

it appreciable if me on this.

thanks, sush


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -