{
"schemes": [${swagger.config.schemes}],
"host": "${swagger.config.host}",
"basePath": "${swagger.config.basePath}",
"description": "description",
"resourcePackage": "your.pkg.to.jax.rs.resources",
"scan": true,
"version": "${api.version}",
"info": {
"title": "title"
}
}
final ObjectMapper mapper = new ObjectMapper();
try {
final BeanConfig config = mapper.readValue(
getClass().getResource("/swagger/config.json"),
BeanConfig.class);
} catch (final IOException ioe) {
ioe.printStackTrace(System.err);
}
Like this:
Like Loading...
Related