When I was writing swagger comments today, I found that the entity class I wrote had some classes in Models in swagger-ui.html. So I checked the information and found that if this entity is not called in the Controller, even if the @ApiModel annotation is added, it cannot be seen on the interface document. In order to be able to see all entities, a TestController is specially written to call these entities, so that these entities can be displayed in the interface document.
@Controller
@RequestMapping("/test")
public class TestController {
@PostMapping("/t1")
public void t1(@RequestBody ArticleVO articleVO){
return ;
}
}