![5712783-1eb00eb5858ac7ac.png](https://i-blog.csdnimg.cn/blog_migrate/3d56071f0677399c35fed9ed103028f3.webp?x-image-process=image/format,png)
系统启动自动扫描固定包路径下的controller中自定义共有方法,根据注释获取入参、出参模板和错误码
自定义注解
![5712783-154e15ed67a8b0f2.png](https://i-blog.csdnimg.cn/blog_migrate/95c41bef5e2ee31a7ee162e38d3f5b4e.webp?x-image-process=image/format,png)
Controller中使用自定义注解
![5712783-3bff5e1b39a5c468.png](https://i-blog.csdnimg.cn/blog_migrate/649c5ba854fbf9a487b1f5d28f36b47c.webp?x-image-process=image/format,png)
ApiController随系统启动执行扫描
![5712783-13e11fdfbd0c9dc4.png](https://i-blog.csdnimg.cn/blog_migrate/6e6d5261f393205026fce3816875e757.webp?x-image-process=image/format,png)
![5712783-022966534e690399.png](https://i-blog.csdnimg.cn/blog_migrate/2eceac414eb67bd276f80ca580a7e567.webp?x-image-process=image/format,png)
ApiController对外提供2个方法
help()获取所有接口名称
apiInfo(String apiName)获取某个API中提供的方法详情(n个方法及每个方法对应的名称、入参、出参、错误代码表)
![5712783-3efeb673fb933ddd.png](https://i-blog.csdnimg.cn/blog_migrate/ef33cecc45d78d444884d6b97045a33f.webp?x-image-process=image/format,png)
系统启动自动扫描固定包路径下的controller中自定义共有方法,根据注释获取入参、出参模板和错误码
自定义注解
Controller中使用自定义注解
ApiController随系统启动执行扫描
ApiController对外提供2个方法
help()获取所有接口名称
apiInfo(String apiName)获取某个API中提供的方法详情(n个方法及每个方法对应的名称、入参、出参、错误代码表)