publi c class SwaggerDocumentationConfig {
ApiInfo apiInfo() {
return new ApiInfoBuilder().title("Spring Demo Application With Swagger. ").description(
"This is a Demo Application which will show you to work with your rest API by integrating with Swagger UI.")
.license("Apache 2.0").licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
.termsOfServiceUrl("").version("1.0.0").contact(new Contact("Techie Birendra", "https://www.youtube.com/channel/UCrVKhcHEQESmKtK5GEKKwng", "krs.birendra@gmail.com")).build();
}
@Bean
public Docket customImplementation() {
return new Docket(DocumentationType.SWAGGER_2).select()
.apis(RequestHandlerSelectors.basePackage("com.techiebirendra.demo")).build().apiInfo(apiInfo());
}
}
Как добавить com.controller.pkg также здесь?