springfox.documentation.spi.DocumentationType配置⽰例Java Code Examples for springfox.documentation.spi.DocumentationType
The following are top voted examples for showing how to use springfox.documentation.spi.DocumentationType. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples.
+ Example 1
Example 2
Example 3
Example 4
watch.start();Docket docket =new
Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration( true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(org.joda.time.LocalDate.class,
String.class).directModelSubstitute(org.joda.time.LocalDateTime.class,
Date.class).directModelSubstitute(org.joda.time.DateTime.class,Date.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class,
Date.class).directModelSubstitute(java.time.LocalDateTime.class,
Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", TotalTimeMillis());return docket;}
Example 5
Example 6
Example 7
Example 8
Example 9
Example 10
Example 11
Example 12
ModelRef("Error")).build())).securitySchemes(newArrayList(apiKey())).securityContexts(newArrayList(securityContext())).enableUrl Templating(true);}
Example 13
Example 14
Example 15
Example 16
Example 17
Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(tr ue).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class,
String.class).directModelSubstitute(java.time.ZonedDateTime.class,
Date.class).directModelSubstitute(java.time.LocalDateTime.class,
Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
msinfo
log.debug("Started Swagger in {} ms", TotalTimeMillis());return docket;}
Example 18
Example 19
来源: