Stage 5 3. Micro Services [online] _day01 learn to build a CMS server development environment _25- page query interface test -Swagger







api project the following have Swagger2COnfiguration


scans after @ EnableSwagger2 Open All marked @RestController classes at com.xuecheng this package. Then generates the class interface document according to





the input parameter query data

Increase on the interface description




Parameter interface

parameters passed by reference url path, to write paramType = 'path' 

model of the object, there are many attributes

to annotate the model attributes


restarting






 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11544009.html