摘要: 代码如下: @Bean public Docket docket(Environment environment) { // 设置要显示的swagger 环境 Profiles p = Profiles.of("dev","test"); // 通过environment.acceptsProfil 阅读全文
posted @ 2021-06-10 10:27 浅笑19 阅读(500) 评论(0) 推荐(0) 编辑
摘要: Maven依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency> <dependency> < 阅读全文
posted @ 2021-06-10 10:25 浅笑19 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 详情请移步:https://www.jianshu.com/p/7b7e757cc753 阅读全文
posted @ 2021-06-10 10:21 浅笑19 阅读(151) 评论(0) 推荐(0) 编辑
摘要: IService使用 service层需要继承IService,当然实现层也要继承对应的实现类。 /** * <p> * 用户 服务类 * </p> * * @author IT贱男 * @since 2019-06-14 */ public interface UserService extend 阅读全文
posted @ 2021-06-10 10:19 浅笑19 阅读(3576) 评论(0) 推荐(0) 编辑