Swagger does not display the solution to the controller interface problem

 The swagger page shown in the figure above does not display the following part, and the project can run normally without error.

 Solution:

The package path of the swagger configuration class in common in the swagger service call must be the same as the path name of the controller that calls swagger, such as com.example and com.example.demo.controller

The package of swagger must be at the same level as the controller or the parent of the controller

As shown in the figure, the package name here must be consistent with the package name of the project that references it

 

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_42821448/article/details/119720524