本文整理汇总了Java中com.mangofactory.swagger.configuration.SpringSwaggerConfig类的典型用法代码示例。如果您正苦于以下问题:Java SpringSwaggerConfig类的具体用法?Java SpringSwaggerConfig怎么用?Java SpringSwaggerConfig使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SpringSwaggerConfig类属于com.mangofactory.swagger.configuration包,在下文中一共展示了SpringSwaggerConfig类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testCustomSpringMvnPlugin
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Test
public void testCustomSpringMvnPlugin() throws Exception {
// Given
SpringSwaggerConfig springSwaggerConfig = new SpringSwaggerConfig();
// When
CustomSwaggerSpringMvcPlugin unit = new CustomSwaggerSpringMvcPlugin(springSwaggerConfig);
// Then
assertNotNull(unit);
}
示例2: swaggerSpringMvcPlugin
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Swagger Spring MVC configuration
*/
@Bean
public SwaggerSpringMvcPlugin swaggerSpringMvcPlugin(SpringSwaggerConfig springSwaggerConfig) {
return new SwaggerSpringMvcPlugin(springSwaggerConfig)
.apiInfo(apiInfo())
.genericModelSubstitutes(ResponseEntity.class)
.includePatterns(DEFAULT_INCLUDE_PATTERN);
}
示例3: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Required to autowire SpringSwaggerConfig
*/
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例4: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例5: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例6: CustomSwaggerSpringMvcPlugin
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Default constructor.
* @param springSwaggerConfig springSwaggerConfig.
*/
public CustomSwaggerSpringMvcPlugin(final SpringSwaggerConfig springSwaggerConfig) {
super(springSwaggerConfig);
directModelSubstitute(XMLGregorianCalendar.class, Date.class);
}
示例7: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Required to autowire SpringSwaggerConfig
*/
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig)
{
this.springSwaggerConfig = springSwaggerConfig;
}
示例8: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例9: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例10: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例11: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Required to autowire SpringSwaggerConfig.
*/
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例12: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig( SpringSwaggerConfig springSwaggerConfig )
{
this.springSwaggerConfig = springSwaggerConfig;
}
示例13: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例14: setSpringSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
/**
* Required to autowire SpringSwaggerConfig
*/
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}
示例15: setSwaggerConfig
import com.mangofactory.swagger.configuration.SpringSwaggerConfig; //导入依赖的package包/类
@Autowired
public void setSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}