类的使用
springfox.documentation.builders.ModelBuilder
使用ModelBuilder的程序包
-
springfox.documentation.builders中ModelBuilder的使用
修饰符和类型方法说明Update the based modelModelBuilder.description(String description) Update the description of the modelModelBuilder.discriminator(String discriminator) Updates inheritance discriminator, used to identify inherited subclasses.Updates the Example for the model已过时。Updates the Id of the model, usually the type nameUpdates the Name of the modelModelBuilder.properties(Map<String, ModelProperty> properties) Updates the model propertiesModelBuilder.qualifiedType(String qualifiedType) Fully package qualified name of the modelModelBuilder.subTypes(List<ModelReference> subTypes) Updates the subclasses for this model.ModelBuilder.type(com.fasterxml.classmate.ResolvedType modelType) Represents the type information with full fidelity of generics