I have the following setup with Vaadin 10 using the Route API
@Route(value=“rbkc”, layout = LaunchLayout.class)
public class RBKCLaunch extends VerticalLayout implements HasUrlParameter {
…
}
I access my application using http://localhost/rbkc and all works fine. I have not set up anything to do with VaadinServlet so I am assuming all that is happening under the hood.
How do I set productionMode=true in this situation?
All the documentation talks about using the @WebServlet or @VaadinServletConfiguration but I am not sure where to put this.
I have tried the following but it doesn’t work.
@Route(value=“rbkc”, layout = LaunchLayout.class) @VaadinServletConfiguration(productionMode = true, closeIdleSessions=true)
public class RBKCLaunch extends VerticalLayout implements HasUrlParameter {