【发布时间】:2015-04-21 10:34:52
【问题描述】:
我有一个带有以下配置的 spring boot 应用程序。
@Configuration
@EnableWebMvc
@ComponentScan({ "com.xxx.mypackages" })
public class MyWebAppConfiguration extends WebMvcConfigurerAdapter {
}
在我的项目中,我有一些网络服务和弹簧控制器。我希望仅在我的 Web 服务类中启用 swagger。目前,它为 rest 和 controller 类生成文档。如何自定义?
我在 gradle 中使用以下依赖项。
compile "com.mangofactory:swagger-springmvc:1.0.2"
【问题讨论】:
标签: spring-mvc spring-boot swagger