-
-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
AbstractLauncher.java
public abstract class AbstractLauncher extends Jooby {
{
install(new OpenAPIModule());
List<MvcExtension> mvcExtensions = getMvc();
if(mvcExtensions != null && !mvcExtensions.isEmpty()) {
for (MvcExtension mvcExtension : mvcExtensions) {
mvc(mvcExtension);
}
}
}
protected abstract List<MvcExtension> getMvc();
}Launcher.java
public class Launcher extends AbstractLauncher {
@Override
protected List<MvcExtension> getMvc() {
return List.of(
new UserController_()
);
}
public static void main(String[] args) {
runApp(args, Launcher::new);
}
}When I execute the mvn clean compile package, there is no interface documentation content in the generated openapijson. But when Launcher. java directly inherits Jooby and uses mvc(new UserController_()) directly, it can.