类 Knife4jI18nServiceModelToSwagger2MapperImpl
java.lang.Object
springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
com.github.xiaoymin.knife4j.spring.common.bean.Knife4jI18nServiceModelToSwagger2MapperImpl
public class Knife4jI18nServiceModelToSwagger2MapperImpl
extends springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
Support i18n with message.properties,
Rewrite the ServiceModelToSwagger2Mapper implementation class, and some information is obtained from the i18n configuration information
- 从以下版本开始:
- 4.0.0
- 作者:
- xiaoymin@foxmail.com 2022/8/21 09:54
-
构造器概要
构造器构造器说明Knife4jI18nServiceModelToSwagger2MapperImpl(org.springframework.context.MessageSource messageSource, Locale locale, springfox.documentation.swagger2.mappers.ModelMapper modelMapper, springfox.documentation.swagger2.mappers.ParameterMapper parameterMapper, springfox.documentation.swagger2.mappers.SecurityMapper securityMapper, springfox.documentation.swagger2.mappers.LicenseMapper licenseMapper, springfox.documentation.swagger2.mappers.VendorExtensionsMapper vendorExtensionsMapper) -
方法概要
修饰符和类型方法说明protected io.swagger.models.Contactmap(springfox.documentation.service.Contact from) protected io.swagger.models.InfomapApiInfo(springfox.documentation.service.ApiInfo from) io.swagger.models.SwaggermapDocumentation(springfox.documentation.service.Documentation from) protected io.swagger.models.OperationmapOperation(springfox.documentation.service.Operation from) protected io.swagger.models.TagmapTag(springfox.documentation.service.Tag from) protected List<io.swagger.models.parameters.Parameter>parameterListToParameterList(List<springfox.documentation.service.Parameter> list) protected List<io.swagger.models.Scheme>stringSetToSchemeList(Set<String> set) protected List<io.swagger.models.Tag>tagSetToTagList(Set<springfox.documentation.service.Tag> set) 从类继承的方法 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
mapApiListings, mapAuthorizations, mapResponseMessages, mapSchemes
-
构造器详细资料
-
Knife4jI18nServiceModelToSwagger2MapperImpl
public Knife4jI18nServiceModelToSwagger2MapperImpl(org.springframework.context.MessageSource messageSource, Locale locale, springfox.documentation.swagger2.mappers.ModelMapper modelMapper, springfox.documentation.swagger2.mappers.ParameterMapper parameterMapper, springfox.documentation.swagger2.mappers.SecurityMapper securityMapper, springfox.documentation.swagger2.mappers.LicenseMapper licenseMapper, springfox.documentation.swagger2.mappers.VendorExtensionsMapper vendorExtensionsMapper)
-
-
方法详细资料
-
mapDocumentation
public io.swagger.models.Swagger mapDocumentation(springfox.documentation.service.Documentation from) - 指定者:
mapDocumentation在类中springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
-
mapApiInfo
protected io.swagger.models.Info mapApiInfo(springfox.documentation.service.ApiInfo from) - 指定者:
mapApiInfo在类中springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
-
map
protected io.swagger.models.Contact map(springfox.documentation.service.Contact from) - 指定者:
map在类中springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
-
mapOperation
protected io.swagger.models.Operation mapOperation(springfox.documentation.service.Operation from) - 指定者:
mapOperation在类中springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
-
mapTag
protected io.swagger.models.Tag mapTag(springfox.documentation.service.Tag from) - 指定者:
mapTag在类中springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
-
tagSetToTagList
-
stringSetToSchemeList
-
parameterListToParameterList
-