摘要: 1.pom依赖 2.Swagger配置类 增加@EnableSwagger2和@Configuration注解 通过@Configuration注解,让Spring来加载该类配置,@EnableSwagger2注解来启用Swagger2。 再通过createRestApi函数创建Docket的Bea 阅读全文
posted @ 2018-03-26 22:31 小葱拌豆腐~ 阅读(348) 评论(0) 推荐(0) 编辑