mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-12-02 11:48:09 +08:00
change: 改为使用PropertiesProxy.makeDeep生成Swagger的Info对象
This commit is contained in:
parent
e276b42f08
commit
f440f4b6a4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user