摘要: 摘要: 每个微服务都要写一个Swagger给前端参考,那么服务多了Swagger的地址也多了,前端人员需要记住很多Swagger的地址,那么如何解决这个问题?可以在网关层集成Swagger,通过网关访问接口API即可,每个服务还是需要单独集成Swagger,在网关层只是对这些Swagger的地址做了 阅读全文
posted @ 2022-08-25 22:36 yyybl 阅读(316) 评论(0) 推荐(0)
摘要: 一:引入依赖【哪个服务集成Swagger哪个引入】 <!--引入swagger支持--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</ 阅读全文
posted @ 2022-08-25 22:31 yyybl 阅读(56) 评论(0) 推荐(0)
摘要: 一:引入依赖 <!--mybatisplus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>2.2.0</version> </d 阅读全文
posted @ 2022-08-25 22:28 yyybl 阅读(28) 评论(0) 推荐(0)