Configuration

    See the .

    For Spring-based applications, there are Spring specific instructions available.

    When using Java’s system properties to set the Vaadin application parameters, the prefix is needed to be specified before the parameter names. The following shows and example of setting the system property when executing a Maven goal from the command line:

    Show code

    Expand code

    System properties can be configured for Maven plugin executions. For instance, the following example sets a Vaadin specific system property when the Jetty Maven plugin is run:

    Show code

    XML

    Expand code

    Another alternative is to use servlet initialization parameters. You can use the Servlet 3.0 @WebServlet annotation, which requires you to configure your own servlet (otherwise it is done automatically by Vaadin with default parameter values):

    Show code

    Java

    Expand code

    Yet another approach is to use the web.xml file:

    Show code

    XML

    Expand code

    The list contains the properties that are defined in com.vaadin.server.DeploymentConfiguration and com.vaadin.server.Constants classes, in alphabetical order.

    Note
    Spring Boot
    If you use Spring Boot then you should add the prefix vaadin., for example, vaadin.productionMode=true.

    closeIdleSessions

    devmode.liveReload.enabled

    This is by default set to true, which means that if you are using some live reload tool on the server side the browser is refreshed automatically once code is reloaded on the server side.

    devmode.optimizeBundle

    By default, in development mode all frontend resources found on the class path are included in the generated webpack bundle. When set to true, creates an optimized bundle by including only frontend resources that are used from the application entry points (this is the default in production mode). Uses bytecode scanning which increases application startup time.

    Configuration name for the parameter that determines if Vaadin should automatically register servlets needed for the application to work.

    disable-xsrf-protection Cross-site request forgery protection. This protection is enabled by default, but it might need to be disabled to allow a certain type of testing. For these cases, the check can be disabled by setting the init parameter.

    frontend.url.es5

    A location Vaadin searches web components’ files in production mode when the request is coming from older browsers, not supporting es6, default web components’ development language version.

    frontend.url.es6

    A location Vaadin searches web components’ files in production mode for requests from modern browsers.

    heartbeatInterval

    Affects Flow applications only. UIs that are open on the client side send a regular heartbeat to the server to indicate they are still alive, even though there is no ongoing user interaction. When the server does not receive a valid heartbeat for a given UI, it will eventually remove that UI from the session.

    i18n.provider

    I18N provider property. To use localization and translation strings the application only needs to implement I18NProvider and define the fully qualified class name in the property i18n.provider. Please consult documentation.

    load.es5.adapters

    Include polyfills for browsers that do not support ES6 to their initial page. For web components to work, extra libraries (polyfills) are required to be loaded, can be turned off if different versions or libraries should be included instead.

    maxMessageSuspendTimeout

    In certain cases, such as when the server sends adjacent XmlHttpRequest responses and push messages over a low bandwidth connection, messages may be received out of order by the client. This property specifies the maximum time (in milliseconds) that the client will then wait for the predecessors of a received out-order message, before considering them missing and requesting a full resynchronization of the application state from the server. The default value is 5000 ms. You may increase this if your application exhibits an undue amount of resynchronization requests (as these degrade the UX due to flickering and loss of client-side-only state such as scroll position).

    Configuration name for the parameter that determines if Vaadin should use bundled fragments or not.

    This flag can be used to enable pnpm instead of npm for resolving and downloading frontend dependencies. By default it is false and npm is used, but setting it to true enables pnpm. See how to switch between npm and pnpm.

    productionMode

    Turns application to work in production mode. Production mode disables most of the logged information that appears on the console because logging and other debug features can have a significant performance impact. Development mode JavaScript functions are not exported, push is given as a minified JavaScript file instead of full size and static resources are cached. See for more information.

    pushLongPollingSuspendTimeout

    Affects Flow applications only. When using the long polling transport strategy, it specifies how long it accepts responses after each network request. Number of milliseconds.

    pushMode

    Affects Flow applications only. The permitted values are “disabled” or “manual”. See Server Push for more information.

    pushURL

    Affects Flow applications only. The URL to use for push requests. Some servers require a predefined URL to push. See for more information.

    requestTiming

    If true, in each response the server includes some basic timing information. This can be used for performance testing.

    sendUrlsAsParameters

    Returns whether the sending of URL’s as GET and POST parameters in requests with content-type application/x-www-form-urlencoded is enabled or not.

    syncIdCheck

    Returns whether sync id checking is enabled. The sync id is used to gracefully handle situations when the client sends a message to a connector that has recently been removed on the server. Default is .

    useDeprecatedV14Bootstrapping

    This flag can be used to enable the server-side bootstrapping mode which was used in Vaadin 14 and earlier version.