Skip to content

feature: support multiple application on single server #3645

@jknack

Description

@jknack
class FooApp extends Jooby {
   {
      setContextPath("/foo");
      get("/hello", ...)
   }
}

class BarApp extends Jooby {
   {
      setContextPath("/bar");
      get("/hello", ...)
   }
}
main(String[] args) {
   runApp(args, new NettyServer(), List.of(FooApp::new, BarApp::new))
}

Apps will share the server, but they are standalone/independent applications.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions