change: 改为使用PropertiesProxy.makeDeep生成Swagger的Info对象

This commit is contained in:
Wendal Chen 2017-11-29 09:34:27 +08:00
parent e276b42f08
commit f440f4b6a4

View File

@ -56,8 +56,8 @@ public class SwaggerServletStarter extends HttpServlet implements WebServletFace
public void init(ServletConfig config) throws ServletException {
PropertiesProxy conf = appContext.getConfigureLoader().get();
swagger = conf.make(Swagger.class, "swagger.conf.");
Info info = conf.make(Info.class, "swagger.info.");
swagger = conf.makeDeep(Swagger.class, "swagger.conf.");
Info info = conf.makeDeep(Info.class, "swagger.info.");
swagger.setInfo(info);
HashSet<Class<?>> classes = new HashSet<>();
String pkgName = conf.get("swagger.resource.package", appContext.getPackage());