Q:

Vaadin 10+: How can I disable Router?

I'm trying to migrate a Vaadin 8 application to Vaadin 11.
I'm trying to use VaadinServlet and UI:
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = TestUi.class)
public class TestServlet extends VaadinServlet {
}

public class TestUi extends UI {
  @Override
  protected void init(VaadinRequest request) {
    add(new Label("Test"));
  }
}

I get:

Can / do I have to disable Router?
I double checked, there is no class annotated with @Route.
Update: The migration guide states:

So I am still confused about why and where I am supposed to put the Route annotation in this scenario.

A:

You will need to have at least one @Route in Vaadin 10. Since you're migrating, you might want to check the documentation here: https://vaadin.com/docs/v10/flow/migration/1-migrating-v8-v10.html

